diff --git a/changelogs/fragments/2821-ipa_sudorule.yml b/changelogs/fragments/2821-ipa_sudorule.yml new file mode 100644 index 0000000000..5e1197da95 --- /dev/null +++ b/changelogs/fragments/2821-ipa_sudorule.yml @@ -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)." diff --git a/plugins/modules/identity/ipa/ipa_sudorule.py b/plugins/modules/identity/ipa/ipa_sudorule.py index 15abef8f17..4494122e8d 100644 --- a/plugins/modules/identity/ipa/ipa_sudorule.py +++ b/plugins/modules/identity/ipa/ipa_sudorule.py @@ -237,7 +237,7 @@ class SudoRuleIPAClient(IPAClient): return self._post_json(method='sudorule_add_allow_command', name=name, item={'sudocmd': 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): return self._post_json(method='sudorule_remove_allow_command', name=name, item=item)