From e984f315f1066f183d535c9c0b854447f058dbfd Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 29 Oct 2020 12:14:10 -0400 Subject: [PATCH] Correct bug in finding system template list --- api-daemon/pvcapid/provisioner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api-daemon/pvcapid/provisioner.py b/api-daemon/pvcapid/provisioner.py index d89eeb64..2be6c7f0 100755 --- a/api-daemon/pvcapid/provisioner.py +++ b/api-daemon/pvcapid/provisioner.py @@ -360,9 +360,9 @@ def create_template_storage_element(name, disk_id, pool, source_volume=None, dis # Template Modify functions # def modify_template_system(name, vcpu_count=None, vram_mb=None, serial=None, vnc=None, vnc_bind=None, node_limit=None, node_selector=None, node_autostart=None, migration_method=None): - if list_profile(name, is_fuzzy=False)[-1] != 200: + if list_template_system(name, is_fuzzy=False)[-1] != 200: retmsg = { 'message': 'The system template "{}" does not exist.'.format(name) } - retcode = 400 + retcode = 404 return retmsg, retcode fields = []