summaryrefslogtreecommitdiffstats
path: root/ext-plugins
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-02-19 21:53:37 +0100
committerJan Pokorný <jpokorny@redhat.com>2015-02-26 22:37:51 +0100
commit12dffe7c533ac9b595e80e376877fbd1cb79fb2c (patch)
treeb4e2e62ea22a63751239691a0df9b3f8c063d913 /ext-plugins
parente9da6d5de02111b8ade2fb9b0d7c3e9cce2c9697 (diff)
downloadclufter-12dffe7c533ac9b595e80e376877fbd1cb79fb2c.tar.gz
clufter-12dffe7c533ac9b595e80e376877fbd1cb79fb2c.tar.xz
clufter-12dffe7c533ac9b595e80e376877fbd1cb79fb2c.zip
lib-general/formats/command: think of non-arg option
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'ext-plugins')
-rw-r--r--ext-plugins/lib-general/formats/command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext-plugins/lib-general/formats/command.py b/ext-plugins/lib-general/formats/command.py
index e9a0653..65145b9 100644
--- a/ext-plugins/lib-general/formats/command.py
+++ b/ext-plugins/lib-general/formats/command.py
@@ -65,7 +65,7 @@ class command(SimpleFormat):
self.__class__.name
))
ret = list(d.get('__cmd__', ()))
- ret.extend((k, v) for k, vs in d.iteritems() for v in vs
+ ret.extend((k, v) for k, vs in d.iteritems() for v in (vs or ((), ))
if k not in ('__cmd__', '__args__'))
ret.extend(d.get('__args__', ()))
else: