1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

#26903 Invalid JSON-RPC request (#26906)

This commit is contained in:
Alex Bush 2017-08-04 06:26:20 +01:00 committed by ansibot
parent b2ec984130
commit 8e8d4df340

View file

@ -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)