summaryrefslogtreecommitdiffstats
path: root/ipalib/util.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-11-12 01:47:37 -0700
committerJason Gerard DeRose <jderose@redhat.com>2008-11-12 01:47:37 -0700
commit09161e399a61e2a548e9efb3c3abb2c7b47d5520 (patch)
treea168eb43e22563cb328631605ec8ee6f4a814165 /ipalib/util.py
parent014af24731ff39520a9635694ed99dc9d09669c9 (diff)
downloadfreeipa-09161e399a61e2a548e9efb3c3abb2c7b47d5520.tar.gz
freeipa-09161e399a61e2a548e9efb3c3abb2c7b47d5520.tar.xz
freeipa-09161e399a61e2a548e9efb3c3abb2c7b47d5520.zip
Command.get_default() will now fill-in None for all missing non-required params
Diffstat (limited to 'ipalib/util.py')
-rw-r--r--ipalib/util.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipalib/util.py b/ipalib/util.py
index 12f9c7814..9bc432545 100644
--- a/ipalib/util.py
+++ b/ipalib/util.py
@@ -34,6 +34,12 @@ def xmlrpc_marshal(*args, **kw):
"""
Marshal (args, kw) into ((kw,) + args).
"""
+ kw = dict(
+ filter(lambda item: item[1] is not None, kw.iteritems())
+ )
+ args = tuple(
+ filter(lambda value: value is not None, args)
+ )
return ((kw,) + args)