diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-05-19 11:35:23 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-05-25 16:06:26 +0200 |
commit | f8cf136c55aeb20785c08c1fa6abf33cc3fe6291 (patch) | |
tree | 1bf9f001a120fce166d59a8f8b833b027e8e0cb1 | |
parent | 278fa29906093ead4977ae68eb3bf37613329102 (diff) | |
download | freeipa-f8cf136c55aeb20785c08c1fa6abf33cc3fe6291.tar.gz freeipa-f8cf136c55aeb20785c08c1fa6abf33cc3fe6291.tar.xz freeipa-f8cf136c55aeb20785c08c1fa6abf33cc3fe6291.zip |
batch: do not crash when no argument is specified
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: David Kupka <dkupka@redhat.com>
-rw-r--r-- | ipalib/plugins/batch.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |