|
|
@ -201,7 +201,7 @@ class SudoRuleIPAClient(IPAClient):
|
|
|
|
return self.sudorule_remove_host(name=name, item={'hostgroup': item})
|
|
|
|
return self.sudorule_remove_host(name=name, item={'hostgroup': item})
|
|
|
|
|
|
|
|
|
|
|
|
def sudorule_add_allow_command(self, name, 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):
|
|
|
|
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)
|
|
|
|