summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorVlastimil Holer <vlastimil.holer@gmail.com>2013-09-10 00:46:37 +0200
committerVlastimil Holer <vlastimil.holer@gmail.com>2013-09-10 00:46:37 +0200
commit7f3b1198da74430345d69e485326b03a3fa5b455 (patch)
treee085b7f48b12069b4c2096c8b960a99ad40c2da5 /cloudinit
parent781d105a6ca9222e59909341dbd86a13bab5a67e (diff)
downloadvyos-cloud-init-7f3b1198da74430345d69e485326b03a3fa5b455.tar.gz
vyos-cloud-init-7f3b1198da74430345d69e485326b03a3fa5b455.zip
Fix pylint complain on toks.split('.')
Diffstat (limited to 'cloudinit')
-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: