403b09
From f557f7487d9aae0c901a740b9a446568677b8bb3 Mon Sep 17 00:00:00 2001
403b09
From: Jan Cholasta <jcholast@redhat.com>
403b09
Date: Mon, 25 Jul 2016 15:58:20 +0200
403b09
Subject: [PATCH] compat: fix ping call
403b09
403b09
Copy & paste accident caused the ping command to be called with an unwanted
403b09
argument, which results in an exception.
403b09
403b09
Remove the argument to fix it.
403b09
403b09
https://fedorahosted.org/freeipa/ticket/6129
403b09
---
403b09
 ipaclient/remote_plugins/compat.py | 2 +-
403b09
 1 file changed, 1 insertion(+), 1 deletion(-)
403b09
403b09
diff --git a/ipaclient/remote_plugins/compat.py b/ipaclient/remote_plugins/compat.py
403b09
index 40521af450aafca83f33d1723b4fd9e27ef8d96f..aef5718fcaade157487c0e65562c3bc8a11ad7de 100644
403b09
--- a/ipaclient/remote_plugins/compat.py
403b09
+++ b/ipaclient/remote_plugins/compat.py
403b09
@@ -39,7 +39,7 @@ def get_package(api, client):
403b09
     try:
403b09
         server_version = env['result']['api_version']
403b09
     except KeyError:
403b09
-        ping = client.forward(u'ping', u'api_version', version=u'2.0')
403b09
+        ping = client.forward(u'ping', version=u'2.0')
403b09
         try:
403b09
             match = re.search(u'API version (2\.[0-9]+)', ping['summary'])
403b09
         except KeyError:
403b09
-- 
403b09
2.7.4
403b09