Emergency fix to prevent Transform being removed if only Iterate is in use

This commit is contained in:
Stefan Reimer 2019-09-02 15:54:19 +00:00
parent a307ba35fa
commit 1e1f0a7f06

View File

@ -144,7 +144,7 @@ class Stack(object):
logger.error(_output)
raise e
if not re.search('CloudBender::', self.cfn_template):
if not re.search('CloudBender::', self.cfn_template) and not re.search('Iterate:', self.cfn_template):
logger.info("CloudBender not required -> removing Transform and Conglomerate parameter")
self.cfn_template = self.cfn_template.replace('Transform: [CloudBender]', '')