X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fvim-emu.git;a=blobdiff_plain;f=src%2Femuvim%2Fapi%2Fopenstack%2Fopenstack_dummies%2Fheat_dummy_api.py;h=8262adb01393de0445d947a552a3023817d3ac57;hp=107d8fd90d1b8906e90a070777fd68648d05c2bf;hb=f8d9c37a7ffd874a0b7cb18960c0407e616df371;hpb=0beb1e04c88653d940d1647a112a767e96e9afc7 diff --git a/src/emuvim/api/openstack/openstack_dummies/heat_dummy_api.py b/src/emuvim/api/openstack/openstack_dummies/heat_dummy_api.py index 107d8fd..8262adb 100755 --- a/src/emuvim/api/openstack/openstack_dummies/heat_dummy_api.py +++ b/src/emuvim/api/openstack/openstack_dummies/heat_dummy_api.py @@ -259,7 +259,8 @@ class HeatShowStackTemplate(Resource): stack = tmp_stack if stack is None: return 'Could not resolve Stack - ID', 404 - + #LOG.debug("STACK: {}".format(stack)) + #LOG.debug("TEMPLATE: {}".format(stack.template)) return Response(json.dumps(stack.template), status=200, mimetype="application/json") except Exception as ex: @@ -350,6 +351,7 @@ class HeatUpdateStack(Resource): stack_dict['template'] = json.loads(stack_dict['template']) if not reader.parse_input(stack_dict['template'], stack, self.api.compute.dc.label, stack_update=True): return 'Could not create stack.', 400 + stack.template = stack_dict['template'] if not self.api.compute.update_stack(old_stack.id, stack): return 'Could not update stack.', 400