Emergency fix to prevent Transform being removed if only Iterate is in use
This commit is contained in:
parent
a307ba35fa
commit
1e1f0a7f06
@ -144,7 +144,7 @@ class Stack(object):
|
|||||||
logger.error(_output)
|
logger.error(_output)
|
||||||
raise e
|
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")
|
logger.info("CloudBender not required -> removing Transform and Conglomerate parameter")
|
||||||
self.cfn_template = self.cfn_template.replace('Transform: [CloudBender]', '')
|
self.cfn_template = self.cfn_template.replace('Transform: [CloudBender]', '')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user