Fix Python code style for inventory_builder (#5362)

This commit is contained in:
Maxime Guyot
2019-12-05 10:48:32 +01:00
committed by Kubernetes Prow Robot
parent f7aea8ed89
commit 401d441c10
4 changed files with 18 additions and 13 deletions

View File

@@ -224,8 +224,8 @@ class KubesprayInventory(object):
end = int(ip_address(end_address))
except Exception:
# Python 2.7
start = int(ip_address(unicode(start_address)))
end = int(ip_address(unicode(end_address)))
start = int(ip_address(str(start_address)))
end = int(ip_address(str(end_address)))
return [ip_address(ip).exploded for ip in range(start, end + 1)]
for host in hosts: