Merge pull request #1407 from nimbusscale/cloudformation_updates
FakeStack update to support both JSON and YAML templates
This commit is contained in:
commit
6a29800ec8
@ -107,7 +107,8 @@ class FakeStack(BaseModel):
|
||||
def update(self, template, role_arn=None, parameters=None, tags=None):
|
||||
self._add_stack_event("UPDATE_IN_PROGRESS", resource_status_reason="User Initiated")
|
||||
self.template = template
|
||||
self.resource_map.update(json.loads(template), parameters)
|
||||
self._parse_template()
|
||||
self.resource_map.update(self.template_dict, parameters)
|
||||
self.output_map = self._create_output_map()
|
||||
self._add_stack_event("UPDATE_COMPLETE")
|
||||
self.status = "UPDATE_COMPLETE"
|
||||
|
Loading…
Reference in New Issue
Block a user