Commit 344a3093 by Michael DeHaan

Merge pull request #2871 from tima/inv-host-entry-fix

Fixed bug where a host entry in the inventory represented as a dict w/o ...
parents ca824930 b15cc3e2
......@@ -63,6 +63,8 @@ class InventoryScript(object):
if not isinstance(data, dict):
data = {'hosts': data}
elif not any(k in data for k in ('hosts','vars')):
data = {'hosts': [group_name], 'vars': data}
if 'hosts' in data:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment