summaryrefslogtreecommitdiffstats
path: root/ipalib/frontend.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-11-25 13:52:40 -0700
committerJason Gerard DeRose <jderose@redhat.com>2008-11-25 13:52:40 -0700
commit29d680b211021fe755522f4453853344233bc78e (patch)
treee667b1fc51982955bd562747b82d53fcd139b07b /ipalib/frontend.py
parent7350ccbffefdf81992b3ccd8aac814f3bb954be8 (diff)
downloadfreeipa-29d680b211021fe755522f4453853344233bc78e.tar.gz
freeipa-29d680b211021fe755522f4453853344233bc78e.tar.xz
freeipa-29d680b211021fe755522f4453853344233bc78e.zip
Continued work on xmlrpc.dispatch() unit tests; fixed bug in Command.args_to_kw()
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r--ipalib/frontend.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index 6dcbea694..e4dd7637a 100644
--- a/ipalib/frontend.py
+++ b/ipalib/frontend.py
@@ -577,12 +577,18 @@ class Command(plugable.Plugin):
if len(values) > i:
if arg.multivalue:
multivalue = True
- yield (arg.name, values[i:])
+ if len(values) == i + 1 and type(values[i]) in (list, tuple):
+ yield (arg.name, values[i])
+ else:
+ yield (arg.name, values[i:])
else:
yield (arg.name, values[i])
else:
break
+ def args_options_2_params(self, args, options):
+ pass
+
def params_2_args_options(self, params):
"""
Split params into (args, kw).