Skip to content

Commit

Permalink
ovirt_role: Fix administrative option when set to False
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Necas <[email protected]>
  • Loading branch information
mnecas authored and mwperina committed Sep 26, 2023
1 parent b4756e3 commit ab2e793
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- ovirt_role - Fix administrative option when set to False (https://github.com/oVirt/ovirt-ansible-collection/pull/723).
3 changes: 1 addition & 2 deletions plugins/modules/ovirt_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ def build_entity(self):
return otypes.Role(
id=self.param('id'),
name=self.param('name'),
administrative=self.param('administrative') if self.param(
'administrative') else None,
administrative=self.param('administrative') if self.param('administrative') is not None else None,
permits=[
otypes.Permit(id=all_permits.get(new_permit)) for new_permit in self.param('permits')
] if self.param('permits') else None,
Expand Down

0 comments on commit ab2e793

Please sign in to comment.