mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #6830 from angstwad/cf-fix
rax_files fix -- small idempotency fix
This commit is contained in:
commit
7db7e86db9
1 changed files with 2 additions and 2 deletions
|
@ -237,6 +237,7 @@ def container(cf, module, container_, state, meta_, clear_meta, ttl, public, pri
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
module.fail_json(msg=e.message)
|
module.fail_json(msg=e.message)
|
||||||
else:
|
else:
|
||||||
|
EXIT_DICT['changed'] = True
|
||||||
EXIT_DICT['created'] = True
|
EXIT_DICT['created'] = True
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg=e.message)
|
module.fail_json(msg=e.message)
|
||||||
|
@ -312,8 +313,7 @@ def container(cf, module, container_, state, meta_, clear_meta, ttl, public, pri
|
||||||
|
|
||||||
_locals = locals().keys()
|
_locals = locals().keys()
|
||||||
|
|
||||||
if ('cont_created' in _locals
|
if ('cont_deleted' in _locals
|
||||||
or 'cont_deleted' in _locals
|
|
||||||
or 'meta_set' in _locals
|
or 'meta_set' in _locals
|
||||||
or 'cont_public' in _locals
|
or 'cont_public' in _locals
|
||||||
or 'cont_private' in _locals
|
or 'cont_private' in _locals
|
||||||
|
|
Loading…
Reference in a new issue