mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Fix Python code style for inventory_builder (#5362)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
f7aea8ed89
commit
401d441c10
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user