summaryrefslogtreecommitdiffstats
path: root/ipaserver/rpcserver.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2010-03-26 03:56:53 -0600
committerRob Crittenden <rcritten@redhat.com>2010-03-30 15:10:58 -0400
commit918721c1d0ad0b330825aa9e3f464f36e31ad0c1 (patch)
tree5195820ceb404e0ce19f7d36c15969c41775253a /ipaserver/rpcserver.py
parent09d3a6b910b9651e9c8d59917d32a0622409f2e8 (diff)
downloadfreeipa-918721c1d0ad0b330825aa9e3f464f36e31ad0c1.tar.gz
freeipa-918721c1d0ad0b330825aa9e3f464f36e31ad0c1.tar.xz
freeipa-918721c1d0ad0b330825aa9e3f464f36e31ad0c1.zip
XML-RPC signature change
Diffstat (limited to 'ipaserver/rpcserver.py')
-rw-r--r--ipaserver/rpcserver.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/ipaserver/rpcserver.py b/ipaserver/rpcserver.py
index 667a7c4ca..795a240d9 100644
--- a/ipaserver/rpcserver.py
+++ b/ipaserver/rpcserver.py
@@ -72,12 +72,11 @@ def read_input(environ):
def params_2_args_options(params):
- assert type(params) is tuple
if len(params) == 0:
return (tuple(), dict())
- if type(params[-1]) is dict:
- return (params[:-1], params[-1])
- return (params, dict())
+ if len(params) == 1:
+ return (params[0], dict())
+ return (params[0], params[1])
def nicify_query(query, encoding='utf-8'):