From dee5d58493a5f1e43ee0261dadebaf4a301a1b3c Mon Sep 17 00:00:00 2001 From: Paul Durivage Date: Thu, 13 Mar 2014 16:19:28 -0500 Subject: [PATCH] Fix issue where a container is created but is not indicating that the state was changed --- cloud/rax_files | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/rax_files b/cloud/rax_files index 720ea53e191..bfd1a0c3d13 100644 --- a/cloud/rax_files +++ b/cloud/rax_files @@ -237,6 +237,7 @@ def container(cf, module, container_, state, meta_, clear_meta, ttl, public, pri except Exception, e: module.fail_json(msg=e.message) else: + EXIT_DICT['changed'] = True EXIT_DICT['created'] = True else: 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() - if ('cont_created' in _locals - or 'cont_deleted' in _locals + if ('cont_deleted' in _locals or 'meta_set' in _locals or 'cont_public' in _locals or 'cont_private' in _locals