diff options
| author | Jan Cholasta <jcholast@redhat.com> | 2016-05-19 14:19:07 +0200 |
|---|---|---|
| committer | Jan Cholasta <jcholast@redhat.com> | 2016-05-25 16:06:26 +0200 |
| commit | 71f960457ed2e2fe53c4c8ea5c37b50180d89a6a (patch) | |
| tree | ae6365d089526f3bd9060ed63b026bbfa9178544 /ipalib/plugins/batch.py | |
| parent | f8cf136c55aeb20785c08c1fa6abf33cc3fe6291 (diff) | |
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/batch.py')
| -rw-r--r-- | ipalib/plugins/batch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/batch.py b/ipalib/plugins/batch.py index 517f4b92b..84a650575 100644 --- a/ipalib/plugins/batch.py +++ b/ipalib/plugins/batch.py @@ -87,9 +87,9 @@ class batch(Command): Output('results', (list, tuple), doc='') ) - def execute(self, *args, **options): + def execute(self, methods=None, **options): results = [] - for arg in (args[0] or []): + for arg in (methods or []): params = dict() name = None try: |
