From b190ea4b62ad8cae5e4a54a094ba9d55e51b75ad Mon Sep 17 00:00:00 2001 From: Tim Bielawa Date: Mon, 5 Mar 2012 14:09:01 -0500 Subject: [PATCH] Fix parse_hosts to not blow up on ungrouped hosts. --- lib/ansible/runner.py | 1 + 1 file changed, 1 insertion(+) 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: