Commit 3763b32f by Paul Durivage

Fix issue where a container is created but is not indicating that the state was changed

parent 5a075e3b
...@@ -237,6 +237,7 @@ def container(cf, module, container_, state, meta_, clear_meta, ttl, public, pri ...@@ -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 ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment