summaryrefslogtreecommitdiff
path: root/cloudinit/distros/freebsd.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-01-16 14:29:48 -0500
committerScott Moser <smoser@ubuntu.com>2015-01-16 14:29:48 -0500
commit8d453d2a4da4492857a4487b14fe7b11a014115b (patch)
treef076768503899a7554be574e34d9c2220c8d8432 /cloudinit/distros/freebsd.py
parentae2f5123faab45e71e4dcf3237d7dac59a4c66b7 (diff)
downloadvyos-cloud-init-8d453d2a4da4492857a4487b14fe7b11a014115b.tar.gz
vyos-cloud-init-8d453d2a4da4492857a4487b14fe7b11a014115b.zip
hostname: apply hostname same as is written
on RHEL, we were writing to persistent configuration the fqdn, but invoking 'hostname' on the first boot with just the shortname. On 'reboot', then the hostname would differ. Now, whatever we write, invoke hostname with. Also remove some duplicate code. LP: #1246485
Diffstat (limited to 'cloudinit/distros/freebsd.py')
-rw-r--r--cloudinit/distros/freebsd.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/cloudinit/distros/freebsd.py b/cloudinit/distros/freebsd.py
index 9216510e..f1b4a256 100644
--- a/cloudinit/distros/freebsd.py
+++ b/cloudinit/distros/freebsd.py
@@ -150,11 +150,6 @@ class Distro(distros.Distro):
return default
return hostname
- def _select_hostname(self, hostname, fqdn):
- if not hostname:
- return fqdn
- return hostname
-
def _write_hostname(self, hostname, filename):
self.updatercconf('hostname', hostname)