Skip to content

Commit

Permalink
os_security_group_rule proper module exit (ansible#50076)
Browse files Browse the repository at this point in the history
When the security group the rule belongs to does not exist and
the state is absent, the module is not properly exited, leading
to a playbook execution failure.

Fixes issue ansible#50057
  • Loading branch information
maiqueb authored and kbreit committed Jan 11, 2019
1 parent e5ebe13 commit dd324db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bugfixes:
- os_security_group_rule - os_security_group_rule doesn't exit properly when
secgroup doesn't exist and state=absent
(https://github.com/ansible/ansible/issues/50057)
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def main():
cloud.delete_security_group_rule(rule['id'])
changed = True

module.exit_json(changed=changed)
module.exit_json(changed=changed)

except sdk.exceptions.OpenStackCloudException as e:
module.fail_json(msg=str(e))
Expand Down

0 comments on commit dd324db

Please sign in to comment.