Commit c3d34a53 by Brian Coca

Merge pull request #8936 from srvg/inventoryscript_onlychildren

Allow InventoryScript JSON with childgroups only
parents 761540e9 69740b86
......@@ -92,7 +92,7 @@ class InventoryScript(object):
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:
......
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