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>pull/4420/head
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))
|
||||
|
|
Loading…
Reference in New Issue