summaryrefslogtreecommitdiffstats
path: root/command.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-02-19 22:14:25 +0100
committerJan Pokorný <jpokorny@redhat.com>2014-02-19 22:14:25 +0100
commitf5d2ecfc2749c5a206acd812a8b6ee6e4a5d13a6 (patch)
tree5a2f5bd4b4e45ed8b62b48e503d4e6e41cc18ace /command.py
parenta63a644d452aadd5b3c3858fd526744f771ec37f (diff)
downloadclufter-f5d2ecfc2749c5a206acd812a8b6ee6e4a5d13a6.tar.gz
clufter-f5d2ecfc2749c5a206acd812a8b6ee6e4a5d13a6.tar.xz
clufter-f5d2ecfc2749c5a206acd812a8b6ee6e4a5d13a6.zip
command: fix a thinko in test/prod scenario separation
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'command.py')
-rw-r--r--command.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/command.py b/command.py
index 8b1ab5d..1d3b4eb 100644
--- a/command.py
+++ b/command.py
@@ -331,7 +331,8 @@ class Command(object):
args = args[0].split('::') + args[1:]
args.reverse() # we will be poping from the end
for v in fnc_varnames:
- if getattr(opts, v, None) != fnc_defaults.get(v, None):
+ opt = getattr(opts, v, None)
+ if opt is not None and opt != fnc_defaults.get(v, None):
kwargs[v] = getattr(opts, v)
continue
if args: