summaryrefslogtreecommitdiff
path: root/cloudinit/CloudConfig/cc_update_etc_hosts.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-01-12 16:51:47 +0100
committerScott Moser <smoser@ubuntu.com>2012-01-12 16:51:47 +0100
commit234cefd314a7e1cfb51fad3bdf344d801a8b238d (patch)
treedadad683214756e91e9a15c5ad88a9f89f8cf572 /cloudinit/CloudConfig/cc_update_etc_hosts.py
parentdf5d51c25523ea04d45f5f077e94885d1847e526 (diff)
downloadvyos-cloud-init-234cefd314a7e1cfb51fad3bdf344d801a8b238d.tar.gz
vyos-cloud-init-234cefd314a7e1cfb51fad3bdf344d801a8b238d.zip
[PATCH 05/13] Fix pylint warnings W0613 (unused argument)
From: Juerg Haefliger <juerg.haefliger@hp.com>
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)