Commit 959b6fe5 authored by Apollon Oikonomopoulos's avatar Apollon Oikonomopoulos Committed by Michael Hanselmann
Browse files

cfgupgrade: really ignore hostname when told so

cfgupgrade provides a --ignore-hostname option, however consequently it
spawns config.ConfigWriter, which refuses to handle a foreign
configuration file by default.

config.ConfigWriter provides a relative keyword argument,
accept_foreign, so we tie this to the value of options.ignore_hostname.
Signed-off-by: default avatarApollon Oikonomopoulos <>
Reviewed-by: default avatarMichael Hanselmann <>
parent cfda0e48
......@@ -221,6 +221,7 @@ def main():
if not (options.dry_run or options.no_verify):"Testing the new config file...")
cfg = config.ConfigWriter(cfg_file=options.CONFIG_DATA_PATH,
# if we reached this, it's all fine
vrfy = cfg.VerifyConfig()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment