Merge pull request #13766 from nflx/devel
Allow InventoryScript JSON with childgroups only
This commit is contained in:
commit
f56c15e7e2
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue