Fix remaing yaml load calls

This commit is contained in:
Stefan Reimer 2019-06-12 17:17:18 +00:00
parent badb7b02c8
commit 309356b129

View File

@ -154,7 +154,7 @@ class Stack(object):
Fn::Sub: "arn:aws:lambda:${{AWS::Region}}:${{AWS::AccountId}}:function:FortyTwo"
UpdateToken: {}
Include: {}""".format(self.md5, sorted(set(include)))
self.cfn_data['Resources'].update(yaml.load(_res))
self.cfn_data['Resources'].update(yaml.safe_load(_res))
self.cfn_template = re.sub(r'Resources:', r'Resources:' + _res + '\n', self.cfn_template)
logger.info("Legacy Mode -> added Custom::FortyTwo")