Commit 5ad9bc88 by Seth Vidal

when using -i"hostname," on the cli - don't complain about the host named "" not…

when using -i"hostname," on the cli - don't complain about the host named "" not being a host - just clip it from the list
parent bfed0f14
...@@ -53,6 +53,7 @@ class Inventory(object): ...@@ -53,6 +53,7 @@ class Inventory(object):
if type(host_list) in [ str, unicode ]: if type(host_list) in [ str, unicode ]:
if host_list.find(",") != -1: if host_list.find(",") != -1:
host_list = host_list.split(",") host_list = host_list.split(",")
host_list = [ h for h in host_list if h and h.strip() ]
if type(host_list) == list: if type(host_list) == list:
all = Group('all') all = Group('all')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment