summaryrefslogtreecommitdiff
path: root/cloudinit/DataSource.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/DataSource.py')
-rw-r--r--cloudinit/DataSource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/DataSource.py b/cloudinit/DataSource.py
index 5bb7c3b0..597760fa 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(".")