diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-09-24 17:41:56 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-09-24 17:41:56 -0700 |
commit | ebd83a036cd94d856c2cd100202c6fb4ca287ce1 (patch) | |
tree | 2502a4464ae60d5a821ed9040f13241e8dce284b /cloudinit/sources/__init__.py | |
parent | f59369d1bb0eac874dcd2fa91abfad9186b22810 (diff) | |
parent | 314530b519814af4b19b4f7cbcb9a35a6cd68e2d (diff) | |
download | vyos-cloud-init-ebd83a036cd94d856c2cd100202c6fb4ca287ce1.tar.gz vyos-cloud-init-ebd83a036cd94d856c2cd100202c6fb4ca287ce1.zip |
Bring up to date with trunk.
Diffstat (limited to 'cloudinit/sources/__init__.py')
-rw-r--r-- | cloudinit/sources/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py index 6f126091..04083d0c 100644 --- a/cloudinit/sources/__init__.py +++ b/cloudinit/sources/__init__.py @@ -173,7 +173,7 @@ class DataSource(object): # make up a hostname (LP: #475354) in format ip-xx.xx.xx.xx lhost = self.metadata['local-hostname'] if util.is_ipv4(lhost): - toks = [ "ip-%s" % lhost.replace(".", "-") ] + toks = ["ip-%s" % lhost.replace(".", "-")] else: toks = lhost.split(".") |