summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-12-16 12:20:54 -0500
committerScott Moser <smoser@ubuntu.com>2011-12-16 12:20:54 -0500
commit26eaaffad7f8056d1b595aca75b8480e700c0f70 (patch)
tree49f9ebfba5aa6f5261acca83e285b56329399e95 /cloudinit
parent7c0dfc87c83292d621bde66346b5ed1cdd2af7be (diff)
parent1f292d297e368a8dce0122736aa2d140a275caba (diff)
downloadvyos-cloud-init-26eaaffad7f8056d1b595aca75b8480e700c0f70.tar.gz
vyos-cloud-init-26eaaffad7f8056d1b595aca75b8480e700c0f70.zip
merge trunk
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/DataSource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/DataSource.py b/cloudinit/DataSource.py
index 22949b6e..06061a2e 100644
--- a/cloudinit/DataSource.py
+++ b/cloudinit/DataSource.py
@@ -130,7 +130,7 @@ class DataSource:
# if there is an ipv4 address in 'local-hostname', then
# make up a hostname (LP: #475354) in format ip-xx.xx.xx.xx
lhost = self.metadata['local-hostname']
- if util.is_ipv4(lhost):
+ if is_ipv4(lhost):
toks = "ip-%s" % lhost.replace(".","-")
else:
toks = lhost.split(".")