Merge branch 'empty_inventory' of https://github.com/spil-jasper/ansible into spil-jasper-empty_inventory

This commit is contained in:
James Cammarata
2013-09-25 15:54:05 -05:00
2 changed files with 14 additions and 1 deletions

View File

@@ -70,7 +70,9 @@ class Inventory(object):
host_list = host_list.split(",")
host_list = [ h for h in host_list if h and h.strip() ]
if isinstance(host_list, list):
if host_list is None:
self.parser = None
elif isinstance(host_list, list):
self.parser = None
all = Group('all')
self.groups = [ all ]