diff options
author | Tim Bielawa <tbielawa@redhat.com> | 2012-03-05 20:09:01 +0100 |
---|---|---|
committer | Tim Bielawa <tbielawa@redhat.com> | 2012-03-05 20:09:01 +0100 |
commit | b190ea4b62ad8cae5e4a54a094ba9d55e51b75ad (patch) | |
tree | e77a3bb33dcee503dad4900bebf43e7fd6e976c7 /lib | |
parent | Merge pull request #73 from skvidal/feature (diff) | |
download | ansible-b190ea4b62ad8cae5e4a54a094ba9d55e51b75ad.tar.xz ansible-b190ea4b62ad8cae5e4a54a094ba9d55e51b75ad.zip |
Fix parse_hosts to not blow up on ungrouped hosts.
Diffstat (limited to 'lib')
-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: |