Hi,

the attached patch fixes <https://fedorahosted.org/freeipa/ticket/6129>.

Honza

--
Jan Cholasta
From 9e6fe0c5d86e624925db20c59c4092b1c54f4654 Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jchol...@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 40521af..aef5718 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

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to