summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_update_etc_hosts.py
diff options
context:
space:
mode:
authorNate House nathan.house@rackspace.com <>2014-01-28 08:48:47 -0600
committerNate House nathan.house@rackspace.com <>2014-01-28 08:48:47 -0600
commitdd95d5e0a90031f19a68b255510476fb176126a6 (patch)
tree1c6fa51fe6beba7299e34deafa187a3945335614 /cloudinit/config/cc_update_etc_hosts.py
parent79d1eccc9fa751325fcb574fd9385a14bf2bbba6 (diff)
downloadvyos-cloud-init-dd95d5e0a90031f19a68b255510476fb176126a6.tar.gz
vyos-cloud-init-dd95d5e0a90031f19a68b255510476fb176126a6.zip
exclude modules fix 1
Diffstat (limited to 'cloudinit/config/cc_update_etc_hosts.py')
-rw-r--r--cloudinit/config/cc_update_etc_hosts.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/config/cc_update_etc_hosts.py b/cloudinit/config/cc_update_etc_hosts.py
index ce0a3ae8..3e3b4228 100644
--- a/cloudinit/config/cc_update_etc_hosts.py
+++ b/cloudinit/config/cc_update_etc_hosts.py
@@ -27,8 +27,7 @@ frequency = PER_ALWAYS
def handle(name, cfg, cloud, log, _args):
- if cloud.is_excluded(name):
- return
+
manage_hosts = util.get_cfg_option_str(cfg, "manage_etc_hosts", False)
if util.translate_bool(manage_hosts, addons=['template']):
(hostname, fqdn) = util.get_hostname_fqdn(cfg, cloud)