From 71f960457ed2e2fe53c4c8ea5c37b50180d89a6a Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Thu, 19 May 2016 14:19:07 +0200 Subject: 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 --- ipalib/plugins/batch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipalib/plugins/batch.py') 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: -- cgit