diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-12-16 12:11:10 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-12-16 12:11:10 -0500 |
commit | 11f4051fb3f630a92c2592cda59c5c9629b1e6c5 (patch) | |
tree | 81d21b430a1bfcbe38bcbdd5bc3bd566abe8a560 /cloudinit | |
parent | a2970b0565dcd087089daa4835c3f946f51d1e3a (diff) | |
download | vyos-cloud-init-11f4051fb3f630a92c2592cda59c5c9629b1e6c5.tar.gz vyos-cloud-init-11f4051fb3f630a92c2592cda59c5c9629b1e6c5.zip |
DataSource: fix is_ipv4 usage
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/DataSource.py | 2 |
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(".") |