From a4f173808281637b94949baf97f5236323f8c189 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Mon, 12 Jun 2017 14:17:54 +0530 Subject: [PATCH] Fail module instead of returning boolean value Fix added to fail module instead of returning boolean value which raises AttributeError. Fixes #21770 Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/cloud/openstack/os_stack.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ansible/modules/cloud/openstack/os_stack.py b/lib/ansible/modules/cloud/openstack/os_stack.py index a933498566..f76c367345 100644 --- a/lib/ansible/modules/cloud/openstack/os_stack.py +++ b/lib/ansible/modules/cloud/openstack/os_stack.py @@ -182,7 +182,6 @@ def _create_stack(module, stack, cloud): if stack.stack_status == 'CREATE_COMPLETE': return stack else: - return False module.fail_json(msg="Failure in creating stack: {0}".format(stack)) except shade.OpenStackCloudException as e: module.fail_json(msg=str(e))