summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2012-03-05 20:09:01 +0100
committerTim Bielawa <tbielawa@redhat.com>2012-03-05 20:09:01 +0100
commitb190ea4b62ad8cae5e4a54a094ba9d55e51b75ad (patch)
treee77a3bb33dcee503dad4900bebf43e7fd6e976c7 /lib
parentMerge pull request #73 from skvidal/feature (diff)
downloadansible-b190ea4b62ad8cae5e4a54a094ba9d55e51b75ad.tar.xz
ansible-b190ea4b62ad8cae5e4a54a094ba9d55e51b75ad.zip
Fix parse_hosts to not blow up on ungrouped hosts.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/ansible/runner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/runner.py b/lib/ansible/runner.py
index 934de8169d..59b0491b34 100755
--- a/lib/ansible/runner.py
+++ b/lib/ansible/runner.py
@@ -112,6 +112,7 @@ class Runner(object):
host_list = os.path.expanduser(host_list)
lines = file(host_list).read().split("\n")
groups = {}
+ groups['ungrouped'] = []
group_name = 'ungrouped'
results = []
for item in lines: