Handle new return setup

This commit is contained in:
Joshua Boniface 2020-01-05 16:53:12 -05:00
parent ba85d1d338
commit 6306586ad3
1 changed files with 5 additions and 5 deletions

View File

@ -692,7 +692,7 @@ def create_profile(name, system_template, network_template, storage_template, us
retcode = 400 retcode = 400
return retmsg, retcode return retmsg, retcode
system_templates = list_template_system(None) system_templates, code = list_template_system(None)
system_template_id = None system_template_id = None
for template in system_templates: for template in system_templates:
if template['name'] == system_template: if template['name'] == system_template:
@ -702,7 +702,7 @@ def create_profile(name, system_template, network_template, storage_template, us
retcode = 400 retcode = 400
return retmsg, retcode return retmsg, retcode
network_templates = list_template_network(None) network_templates, code = list_template_network(None)
network_template_id = None network_template_id = None
for template in network_templates: for template in network_templates:
if template['name'] == network_template: if template['name'] == network_template:
@ -712,7 +712,7 @@ def create_profile(name, system_template, network_template, storage_template, us
retcode = 400 retcode = 400
return retmsg, retcode return retmsg, retcode
storage_templates = list_template_storage(None) storage_templates, code = list_template_storage(None)
storage_template_id = None storage_template_id = None
for template in storage_templates: for template in storage_templates:
if template['name'] == storage_template: if template['name'] == storage_template:
@ -722,7 +722,7 @@ def create_profile(name, system_template, network_template, storage_template, us
retcode = 400 retcode = 400
return retmsg, retcode return retmsg, retcode
userdatas = list_userdata(None) userdatas, code = list_userdata(None)
userdata_id = None userdata_id = None
for template in userdatas: for template in userdatas:
if template['name'] == userdata: if template['name'] == userdata:
@ -732,7 +732,7 @@ def create_profile(name, system_template, network_template, storage_template, us
retcode = 400 retcode = 400
return retmsg, retcode return retmsg, retcode
scripts = list_script(None) scripts, code = list_script(None)
script_id = None script_id = None
for scr in scripts: for scr in scripts:
if scr['name'] == script: if scr['name'] == script: