Browse Source

fix error with delete host in inventory.py script (#4203)

* fix error with delete host in inventory.py script

* minor fix
pull/4213/head
tikitavi 5 years ago
committed by Matthew Mosesohn
parent
commit
befa8a6cbd
1 changed files with 1 additions and 1 deletions
  1. 2
      contrib/inventory_builder/inventory.py

2
contrib/inventory_builder/inventory.py

@ -190,7 +190,7 @@ class KubesprayInventory(object):
return [ip_address(ip).exploded for ip in range(start, end+1)]
for host in hosts:
if '-' in host:
if '-' in host and not host.startswith('-'):
start, end = host.strip().split('-')
try:
reworked_hosts.extend(ips(start, end))

Loading…
Cancel
Save