Skip to content

Commit

Permalink
fix error with delete host in inventory.py script (kubernetes-sigs#4203)
Browse files Browse the repository at this point in the history
* fix error with delete host in inventory.py script

* minor fix
  • Loading branch information
tikitavi authored and mattymo committed Feb 11, 2019
1 parent 85b77f7 commit befa8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/inventory_builder/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def ips(start_address, end_address):
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))
Expand Down

0 comments on commit befa8a6

Please sign in to comment.