summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/internal.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-05-19 14:19:07 +0200
committerJan Cholasta <jcholast@redhat.com>2016-05-25 16:06:26 +0200
commit71f960457ed2e2fe53c4c8ea5c37b50180d89a6a (patch)
treeae6365d089526f3bd9060ed63b026bbfa9178544 /ipalib/plugins/internal.py
parentf8cf136c55aeb20785c08c1fa6abf33cc3fe6291 (diff)
downloadfreeipa-71f960457ed2e2fe53c4c8ea5c37b50180d89a6a.tar.gz
freeipa-71f960457ed2e2fe53c4c8ea5c37b50180d89a6a.tar.xz
freeipa-71f960457ed2e2fe53c4c8ea5c37b50180d89a6a.zip
ipalib: make optional positional command arguments actually optional
Fix several plugins not to assume optional positional arguments have a value of None when not specified. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipalib/plugins/internal.py')
-rw-r--r--ipalib/plugins/internal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py
index 54871f76d..c28693a46 100644
--- a/ipalib/plugins/internal.py
+++ b/ipalib/plugins/internal.py
@@ -70,7 +70,7 @@ class json_metadata(Command):
Output('commands', dict, doc=_('Dict of JSON encoded IPA Commands')),
)
- def execute(self, objname, methodname, **options):
+ def execute(self, objname=None, methodname=None, **options):
objects = dict()
methods = dict()
commands = dict()