mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix sudorule_add_allow_command_group (#2821)
* fix sudorule_add_allow_command_group fix sudorule_add_allow_command_group is not working on freeIPA 4.8.7 at least, sudorule_add_allow_command should be used instead with item sudocmdgroup * Added changelog fragment
This commit is contained in:
parent
c9cf641188
commit
ee23c26150
2 changed files with 5 additions and 1 deletions
4
changelogs/fragments/2821-ipa_sudorule.yml
Normal file
4
changelogs/fragments/2821-ipa_sudorule.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- "ipa_sudorule - call ``sudorule_add_allow_command`` method instead of ``sudorule_add_allow_command_group``
|
||||||
|
(https://github.com/ansible-collections/community.general/issues/2442)."
|
|
@ -237,7 +237,7 @@ class SudoRuleIPAClient(IPAClient):
|
||||||
return self._post_json(method='sudorule_add_allow_command', name=name, item={'sudocmd': item})
|
return self._post_json(method='sudorule_add_allow_command', name=name, item={'sudocmd': item})
|
||||||
|
|
||||||
def sudorule_add_allow_command_group(self, name, item):
|
def sudorule_add_allow_command_group(self, name, item):
|
||||||
return self._post_json(method='sudorule_add_allow_command_group', name=name, item={'sudocmdgroup': item})
|
return self._post_json(method='sudorule_add_allow_command', name=name, item={'sudocmdgroup': item})
|
||||||
|
|
||||||
def sudorule_remove_allow_command(self, name, item):
|
def sudorule_remove_allow_command(self, name, item):
|
||||||
return self._post_json(method='sudorule_remove_allow_command', name=name, item=item)
|
return self._post_json(method='sudorule_remove_allow_command', name=name, item=item)
|
||||||
|
|
Loading…
Reference in a new issue