diff options
Diffstat (limited to 'cloudinit/config/cc_update_hostname.py')
-rw-r--r-- | cloudinit/config/cc_update_hostname.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cloudinit/config/cc_update_hostname.py b/cloudinit/config/cc_update_hostname.py index e396ba13..56f6ebb7 100644 --- a/cloudinit/config/cc_update_hostname.py +++ b/cloudinit/config/cc_update_hostname.py @@ -27,6 +27,7 @@ frequency = PER_ALWAYS def handle(name, cfg, cloud, log, _args): + if util.get_cfg_option_bool(cfg, "preserve_hostname", False): log.debug(("Configuration option 'preserve_hostname' is set," " not updating the hostname in module %s"), name) |