mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix for #6365: cloudformation module fails to update if stack exists
This commit is contained in:
parent
53fd5295dc
commit
b9ab31ebd8
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ def main():
|
||||||
operation = 'CREATE'
|
operation = 'CREATE'
|
||||||
except Exception, err:
|
except Exception, err:
|
||||||
error_msg = boto_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
|
update = True
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg=error_msg)
|
module.fail_json(msg=error_msg)
|
||||||
|
|
Loading…
Reference in a new issue