Skip to content

Commit

Permalink
ovirt_permission: fix group search that has space in it's name (#318)
Browse files Browse the repository at this point in the history
* ovirt_permission: fix group search that has space in it's name

    Currently if we try to add a group with space to any object, it
    will fails with error "Group was not found". This fixes the same.

    RHBZ: https://bugzilla.redhat.com/1982058

* Create 318-ovirt_permission-fix-group-search-that-has-space.yml

Co-authored-by: Martin Nečas <[email protected]>
  • Loading branch information
nijinashok and mnecas authored Jul 14, 2021
1 parent 3281d5d commit 16385e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- ovirt_permission - fix group search that has space in it's name (https://github.com/oVirt/ovirt-ansible-collection/pull/318)
2 changes: 1 addition & 1 deletion plugins/modules/ovirt_permission.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def _user(self):

def _group(self):
groups = self._connection.system_service().groups_service().list(
search="name={name}".format(
search='name="{name}"'.format(
name=self._module.params['group_name'],
)
)
Expand Down

0 comments on commit 16385e7

Please sign in to comment.