diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-11-12 01:47:37 -0700 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-11-12 01:47:37 -0700 |
commit | 09161e399a61e2a548e9efb3c3abb2c7b47d5520 (patch) | |
tree | a168eb43e22563cb328631605ec8ee6f4a814165 /ipalib/util.py | |
parent | 014af24731ff39520a9635694ed99dc9d09669c9 (diff) | |
download | freeipa-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.py | 6 |
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) |