Skip to content
Snippets Groups Projects
Unverified Commit 73b26836 authored by Florian Ruynat's avatar Florian Ruynat Committed by GitHub
Browse files

Allow hosts with hyphen in name (#6529)

parent d8a749fd
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,7 @@ class KubesprayInventory(object):
return [ip_address(ip).exploded for ip in range(start, end + 1)]
for host in hosts:
if '-' in host and not host.startswith('-'):
if '-' in host and not (host.startswith('-') or host[0].isalpha()):
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