diff options
author | Michael DeHaan <michael.dehaan@gmail.com> | 2012-03-05 20:16:55 +0100 |
---|---|---|
committer | Michael DeHaan <michael.dehaan@gmail.com> | 2012-03-05 20:16:55 +0100 |
commit | 3c20f4000f5faf17661181f1b08017ffae2f9c67 (patch) | |
tree | eff5d2b7984a7790b86ee5f79490bb0f1627f1cf | |
parent | Merge pull request #76 from tbielawa/hacking (diff) | |
parent | Fix parse_hosts to not blow up on ungrouped hosts. (diff) | |
download | ansible-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-x | lib/ansible/runner.py | 1 |
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: |