summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-24 18:45:31 +0000
committerScott Moser <smoser@ubuntu.com>2011-01-24 18:45:31 +0000
commitc57c64bae85657efddf12eea6f69f36ae3951811 (patch)
treea1dc019cf8052922311a096555e5c1ef342d5505 /cloudinit
parent0740b0d5278a6629f4fab68e2c3344bedaa78169 (diff)
downloadvyos-cloud-init-c57c64bae85657efddf12eea6f69f36ae3951811.tar.gz
vyos-cloud-init-c57c64bae85657efddf12eea6f69f36ae3951811.zip
cc_update_hostname: fix bad variable name
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/CloudConfig/cc_update_hostname.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/CloudConfig/cc_update_hostname.py b/cloudinit/CloudConfig/cc_update_hostname.py
index c06a434b..6d92157a 100644
--- a/cloudinit/CloudConfig/cc_update_hostname.py
+++ b/cloudinit/CloudConfig/cc_update_hostname.py
@@ -53,7 +53,7 @@ def read_hostname(filename, default=None):
if e.errno == errno.ENOENT: pass
return default
-def update_hostname(hostname, previous, log):
+def update_hostname(hostname, prev_file, log):
etc_file = "/etc/hostname"
hostname_prev = None