summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/sources/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py
index b0e43954..1dfdf9bf 100644
--- a/cloudinit/sources/__init__.py
+++ b/cloudinit/sources/__init__.py
@@ -173,7 +173,7 @@ class DataSource(object):
toks = util.gethostbyaddr(lhost)
if toks:
- toks = toks.split('.')
+ toks = str(toks).split('.')
else:
toks = ["ip-%s" % lhost.replace(".", "-")]
else: