diff options
Diffstat (limited to 'cloudinit/distros/ubuntu.py')
-rw-r--r-- | cloudinit/distros/ubuntu.py | 3 |
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: |