From 11f4051fb3f630a92c2592cda59c5c9629b1e6c5 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 16 Dec 2011 12:11:10 -0500 Subject: DataSource: fix is_ipv4 usage --- cloudinit/DataSource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit') 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(".") -- cgit v1.2.3