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:
parent
cb704a4310
commit
a4f1738082
1 changed files with 0 additions and 1 deletions
|
@ -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 a new issue