From 8e8d4df340722efcf70095f1746c8fc5ad700bde Mon Sep 17 00:00:00 2001 From: Alex Bush Date: Fri, 4 Aug 2017 06:26:20 +0100 Subject: [PATCH] #26903 Invalid JSON-RPC request (#26906) --- lib/ansible/modules/identity/ipa/ipa_sudorule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/identity/ipa/ipa_sudorule.py b/lib/ansible/modules/identity/ipa/ipa_sudorule.py index dd25d34820..81c6caf764 100644 --- a/lib/ansible/modules/identity/ipa/ipa_sudorule.py +++ b/lib/ansible/modules/identity/ipa/ipa_sudorule.py @@ -201,7 +201,7 @@ class SudoRuleIPAClient(IPAClient): return self.sudorule_remove_host(name=name, item={'hostgroup': item}) def sudorule_add_allow_command(self, name, item): - return self._post_json(method='sudorule_add_allow_command', name=name, item=item) + return self._post_json(method='sudorule_add_allow_command', name=name, item={'sudocmd': item}) def sudorule_remove_allow_command(self, name, item): return self._post_json(method='sudorule_remove_allow_command', name=name, item=item)