Skip to content
Snippets Groups Projects
Commit befa8a6c authored by tikitavi's avatar tikitavi Committed by Matthew Mosesohn
Browse files

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

* fix error with delete host in inventory.py script

* minor fix
parent 85b77f7c
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment