diff --git a/contrib/inventory_builder/inventory.py b/contrib/inventory_builder/inventory.py index 95d5eac0b31635385049c35cff5dcbe56d181dde..6373317d22d525b8141d23a699a77d5a896349c5 100644 --- a/contrib/inventory_builder/inventory.py +++ b/contrib/inventory_builder/inventory.py @@ -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))