summaryrefslogtreecommitdiff
path: root/cloudinit/CloudConfig/cc_update_etc_hosts.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/CloudConfig/cc_update_etc_hosts.py')
-rw-r--r--cloudinit/CloudConfig/cc_update_etc_hosts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/CloudConfig/cc_update_etc_hosts.py b/cloudinit/CloudConfig/cc_update_etc_hosts.py
index cf2ad046..9e3a1dbb 100644
--- a/cloudinit/CloudConfig/cc_update_etc_hosts.py
+++ b/cloudinit/CloudConfig/cc_update_etc_hosts.py
@@ -21,7 +21,7 @@ import StringIO
frequency = per_always
-def handle(name,cfg,cloud,log,args):
+def handle(_name,cfg,cloud,log,_args):
( hostname, fqdn ) = util.get_hostname_fqdn(cfg, cloud)
manage_hosts = util.get_cfg_option_bool(cfg,"manage_etc_hosts", False)
@@ -48,7 +48,7 @@ def handle(name,cfg,cloud,log,args):
log.debug("not managing /etc/hosts")
-def update_etc_hosts(hostname, fqdn, log):
+def update_etc_hosts(hostname, fqdn, _log):
with open('/etc/hosts', 'r') as etchosts:
header = "# Added by cloud-init\n"
hosts_line = "127.0.1.1\t%s %s\n" % (fqdn, hostname)