summaryrefslogtreecommitdiff
path: root/cloudinit/distros/ubuntu.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-15 18:37:05 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-15 18:37:05 -0700
commitf6b08a5dbad79ff62608626e055ff4c30d3c7492 (patch)
treebf345e195e92d4dba93f657a36fc91e7904c75ab /cloudinit/distros/ubuntu.py
parent38f5c116dded3d9ed9568c2a06f071b2a88bdb2e (diff)
downloadvyos-cloud-init-f6b08a5dbad79ff62608626e055ff4c30d3c7492.tar.gz
vyos-cloud-init-f6b08a5dbad79ff62608626e055ff4c30d3c7492.zip
Variable name mismatch
Diffstat (limited to 'cloudinit/distros/ubuntu.py')
-rw-r--r--cloudinit/distros/ubuntu.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/distros/ubuntu.py b/cloudinit/distros/ubuntu.py
index b8aff03c..e68f3064 100644
--- a/cloudinit/distros/ubuntu.py
+++ b/cloudinit/distros/ubuntu.py
@@ -53,8 +53,7 @@ class Distro(distros.Distro):
util.subp(['hostname', hostname])
def update_hostname(self, hostname, prev_file):
- hostname_prev = None
- prev_name = self._read_hostname(prev_file)
+ hostname_prev = self._read_hostname(prev_file)
hostname_in_etc = self._read_hostname("/etc/hostname")
update_files = []
if not hostname_prev or hostname_prev != hostname: