Merge pull request #13766 from nflx/devel

Allow InventoryScript JSON with childgroups only
This commit is contained in:
Brian Coca 2016-01-12 10:01:11 -05:00
commit f56c15e7e2

View file

@ -103,7 +103,7 @@ class InventoryScript:
if not isinstance(data, dict):
data = {'hosts': data}
# is not those subkeys, then simplified syntax, host with vars
elif not any(k in data for k in ('hosts','vars')):
elif not any(k in data for k in ('hosts','vars','children')):
data = {'hosts': [group_name], 'vars': data}
if 'hosts' in data: