From f8cf136c55aeb20785c08c1fa6abf33cc3fe6291 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Thu, 19 May 2016 11:35:23 +0200 Subject: [PATCH] batch: do not crash when no argument is specified https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka --- ipalib/plugins/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipalib/plugins/batch.py b/ipalib/plugins/batch.py index 6a5b383ff..517f4b92b 100644 --- a/ipalib/plugins/batch.py +++ b/ipalib/plugins/batch.py @@ -89,7 +89,7 @@ class batch(Command): def execute(self, *args, **options): results = [] - for arg in args[0]: + for arg in (args[0] or []): params = dict() name = None try: