Exclude stack policy when running in check mode.

Fixes #31931
This commit is contained in:
tedder 2017-10-19 09:21:50 -07:00 committed by Toshio Kuratomi
parent cd854c1d2b
commit f29285b4b5

View file

@ -503,7 +503,8 @@ def main():
else:
stack_params['NotificationARNs'] = []
if module.params['stack_policy'] is not None:
# can't check the policy when verifying.
if module.params['stack_policy'] is not None and not module.check_mode:
stack_params['StackPolicyBody'] = open(module.params['stack_policy'], 'r').read()