Ignore port numbers in simple inventory format

pull/146/head
Jeroen Hoekx 13 years ago
parent 746f1b92ae
commit f04041b37d

@ -105,6 +105,9 @@ class Inventory(object):
groups[group_name] = []
elif item != "":
# looks like a regular host
if ":" in item:
# a port was specified
item, port = item.split(":")
groups[group_name].append(item)
if not item in results:
results.append(item)

@ -3,7 +3,7 @@ saturn
[greek]
zeus
hera
hera:3000
poseidon
[norse]

Loading…
Cancel
Save