diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-02-19 22:14:25 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-02-19 22:14:25 +0100 |
commit | f5d2ecfc2749c5a206acd812a8b6ee6e4a5d13a6 (patch) | |
tree | 5a2f5bd4b4e45ed8b62b48e503d4e6e41cc18ace /command.py | |
parent | a63a644d452aadd5b3c3858fd526744f771ec37f (diff) | |
download | clufter-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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |