Fix for #6365: cloudformation module fails to update if stack exists

reviewable/pr18780/r1
Federico Feroldi 11 years ago
parent 87d4bd771f
commit 53f9e96189

@ -250,7 +250,7 @@ def main():
operation = 'CREATE'
except Exception, err:
error_msg = boto_exception(err)
if 'AlreadyExistsException' in error_msg:
if 'AlreadyExistsException' in error_msg or 'already exists' in error_msg:
update = True
else:
module.fail_json(msg=error_msg)

Loading…
Cancel
Save