diff --git a/lib/core/option.py b/lib/core/option.py index f5e3341f5..dc7bddd64 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1298,7 +1298,8 @@ def __mergeOptions(inputOptions): inputOptionsItems = inputOptions.__dict__.items() for key, value in inputOptionsItems: - if not conf.has_key(key) or conf[key] is None or value is not None: + if key not in conf or (conf[key] is False and value is True) or \ + value not in (None, False): conf[key] = value def __setTrafficOutputFP():