From 7f3b1198da74430345d69e485326b03a3fa5b455 Mon Sep 17 00:00:00 2001 From: Vlastimil Holer Date: Tue, 10 Sep 2013 00:46:37 +0200 Subject: Fix pylint complain on toks.split('.') --- cloudinit/sources/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit') 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: -- cgit v1.2.3