mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
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 <akasurde@redhat.com>
This commit is contained in:
committed by
Brian Coca
parent
cb704a4310
commit
a4f1738082
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user