summaryrefslogtreecommitdiff
path: root/cloudinit/__init__.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-07-19 22:53:05 -0400
committerScott Moser <smoser@ubuntu.com>2011-07-19 22:53:05 -0400
commit6d25c040ee566f6ef85352d7b52eb5947230f78a (patch)
treecb3f8f99926b3423d623b9a00a95ad5b47b2de7c /cloudinit/__init__.py
parent20a0cf9bf34408706f34edee5e1e75fd9676774c (diff)
downloadvyos-cloud-init-6d25c040ee566f6ef85352d7b52eb5947230f78a.tar.gz
vyos-cloud-init-6d25c040ee566f6ef85352d7b52eb5947230f78a.zip
improve the updating of /etc/hosts with correct fqdn when possible
Thanks to Adam Gandalman and Marc Cluet for this fix. LP: #812539
Diffstat (limited to 'cloudinit/__init__.py')
-rw-r--r--cloudinit/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/__init__.py b/cloudinit/__init__.py
index 82dfaa8f..f471f363 100644
--- a/cloudinit/__init__.py
+++ b/cloudinit/__init__.py
@@ -452,8 +452,8 @@ class CloudInit:
def get_mirror(self):
return(self.datasource.get_local_mirror())
- def get_hostname(self):
- return(self.datasource.get_hostname())
+ def get_hostname(self, fqdn=False):
+ return(self.datasource.get_hostname(fqdn=fqdn))
def device_name_to_device(self,name):
return(self.datasource.device_name_to_device(name))