diff --git a/osc/conf.py b/osc/conf.py index 31c5c9ec..06e93d13 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -1974,6 +1974,9 @@ def get_config(override_conffile=None, # priority: env, overrides, config if env_key in os.environ: value = os.environ[env_key] + # remove any matching records from overrides because they are checked for emptiness later + overrides.pop(name, None) + overrides.pop(ini_key, None) elif name in overrides: value = overrides.pop(name) elif ini_key in overrides: