From f6b08a5dbad79ff62608626e055ff4c30d3c7492 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Fri, 15 Jun 2012 18:37:05 -0700 Subject: Variable name mismatch --- cloudinit/distros/ubuntu.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cloudinit') 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: -- cgit v1.2.3