The Identity, Policy and Audit system
CentOS Sources
2016-11-03 403b09ab980c02ef36095973349a13e0181c794a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From f557f7487d9aae0c901a740b9a446568677b8bb3 Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jcholast@redhat.com>
Date: Mon, 25 Jul 2016 15:58:20 +0200
Subject: [PATCH] compat: fix ping call
 
Copy & paste accident caused the ping command to be called with an unwanted
argument, which results in an exception.
 
Remove the argument to fix it.
 
https://fedorahosted.org/freeipa/ticket/6129
---
 ipaclient/remote_plugins/compat.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/ipaclient/remote_plugins/compat.py b/ipaclient/remote_plugins/compat.py
index 40521af450aafca83f33d1723b4fd9e27ef8d96f..aef5718fcaade157487c0e65562c3bc8a11ad7de 100644
--- a/ipaclient/remote_plugins/compat.py
+++ b/ipaclient/remote_plugins/compat.py
@@ -39,7 +39,7 @@ def get_package(api, client):
     try:
         server_version = env['result']['api_version']
     except KeyError:
-        ping = client.forward(u'ping', u'api_version', version=u'2.0')
+        ping = client.forward(u'ping', version=u'2.0')
         try:
             match = re.search(u'API version (2\.[0-9]+)', ping['summary'])
         except KeyError:
-- 
2.7.4