diff options
author | Vlastimil Holer <vlastimil.holer@gmail.com> | 2013-09-10 00:46:37 +0200 |
---|---|---|
committer | Vlastimil Holer <vlastimil.holer@gmail.com> | 2013-09-10 00:46:37 +0200 |
commit | 7f3b1198da74430345d69e485326b03a3fa5b455 (patch) | |
tree | e085b7f48b12069b4c2096c8b960a99ad40c2da5 | |
parent | 781d105a6ca9222e59909341dbd86a13bab5a67e (diff) | |
download | vyos-cloud-init-7f3b1198da74430345d69e485326b03a3fa5b455.tar.gz vyos-cloud-init-7f3b1198da74430345d69e485326b03a3fa5b455.zip |
Fix pylint complain on toks.split('.')
-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 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: |