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
This commit is contained in:
Jan Cholasta 2016-07-25 15:58:20 +02:00
parent 0253f3d731
commit b8b7b9bf8e

View File

@ -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: