Fix return text of empty profile list
This commit is contained in:
parent
d6182d92fc
commit
977bd2a439
|
@ -706,7 +706,7 @@ def list_profile(limit, is_fuzzy=True):
|
||||||
if data:
|
if data:
|
||||||
return data, 200
|
return data, 200
|
||||||
else:
|
else:
|
||||||
return {'message': 'No scripts found'}, 404
|
return {'message': 'No profiles found'}, 404
|
||||||
|
|
||||||
def create_profile(name, system_template, network_template, storage_template, userdata, script, arguments=None):
|
def create_profile(name, system_template, network_template, storage_template, userdata, script, arguments=None):
|
||||||
if list_profile(name, is_fuzzy=False)[-1] != 404:
|
if list_profile(name, is_fuzzy=False)[-1] != 404:
|
||||||
|
|
Loading…
Reference in New Issue