diff options
author | Andy Grimm <agrimm@eucalyptus.com> | 2012-09-14 16:23:36 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-09-14 16:23:36 -0400 |
commit | ccea8913191c4039c58d562a6dd13ca1d9ef81c5 (patch) | |
tree | 2da090631e2e13dd2be47ec7f3a53d47899a6cfa | |
parent | 31a145068f259e1c2affbab066cfd028ae901836 (diff) | |
parent | acdc3c45a3deefaf599627eee889d11299525c4c (diff) | |
download | vyos-cloud-init-ccea8913191c4039c58d562a6dd13ca1d9ef81c5.tar.gz vyos-cloud-init-ccea8913191c4039c58d562a6dd13ca1d9ef81c5.zip |
fix hostname based on IP generation.
LP: #1050962
-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 3f611d44..6f126091 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(".") |