mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-03 17:51:12 -03:30
fix error with delete host in inventory.py script (#4203)
* fix error with delete host in inventory.py script * minor fix
This commit is contained in:
committed by
Matthew Mosesohn
parent
85b77f7c22
commit
befa8a6cbd
@@ -190,7 +190,7 @@ class KubesprayInventory(object):
|
|||||||
return [ip_address(ip).exploded for ip in range(start, end+1)]
|
return [ip_address(ip).exploded for ip in range(start, end+1)]
|
||||||
|
|
||||||
for host in hosts:
|
for host in hosts:
|
||||||
if '-' in host:
|
if '-' in host and not host.startswith('-'):
|
||||||
start, end = host.strip().split('-')
|
start, end = host.strip().split('-')
|
||||||
try:
|
try:
|
||||||
reworked_hosts.extend(ips(start, end))
|
reworked_hosts.extend(ips(start, end))
|
||||||
|
|||||||
Reference in New Issue
Block a user