summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2012-03-05 20:16:55 +0100
committerMichael DeHaan <michael.dehaan@gmail.com>2012-03-05 20:16:55 +0100
commit3c20f4000f5faf17661181f1b08017ffae2f9c67 (patch)
treeeff5d2b7984a7790b86ee5f79490bb0f1627f1cf
parentMerge pull request #76 from tbielawa/hacking (diff)
parentFix parse_hosts to not blow up on ungrouped hosts. (diff)
downloadansible-3c20f4000f5faf17661181f1b08017ffae2f9c67.tar.xz
ansible-3c20f4000f5faf17661181f1b08017ffae2f9c67.zip
Merge pull request #74 from tbielawa/ungrouped
Fix parse_hosts to not blow up on ungrouped hosts.
-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: