From ae1ca9e73999b4dd148976c84a245ecdd926c746 Mon Sep 17 00:00:00 2001 From: Travis Johnson Date: Thu, 9 Aug 2018 16:30:52 -0400 Subject: [PATCH] fix host_del Previously produces this error: ```python 'error': {'code': 3005, 'message': 'Unknown option: all', 'name': 'OptionError'} ``` Works without `all` option. Also added explicit version (same version seen elsewhere in this library). --- ipahttp/ipahttp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipahttp/ipahttp.py b/ipahttp/ipahttp.py index d5a7ae8..c3f6b28 100644 --- a/ipahttp/ipahttp.py +++ b/ipahttp/ipahttp.py @@ -165,7 +165,7 @@ def host_add(self, hostname, opasswd, force=True): return results def host_del(self, hostname): - m = {'item': [hostname], 'method': 'host_del', 'params': {'all': True}} + m = {'item': [hostname], 'method': 'host_del', 'params': {'version': '2.164'}} results = self.makeReq(m) return results