summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <bcoca@ansible.com>2016-01-12 10:01:11 -0500
committerBrian Coca <bcoca@ansible.com>2016-01-12 10:01:11 -0500
commitf56c15e7e2a5059bc1d895c60a005815e4bcc140 (patch)
tree2b77fb63d51e99737d474fd1c33c1035a3471e10
parentb58673289ae5e23e36acd44fa9374229f5d66761 (diff)
parentb0fe70538406334f21708401558e4e2e4292658f (diff)
downloadansible-f56c15e7e2a5059bc1d895c60a005815e4bcc140.tar.gz
Merge pull request #13766 from nflx/devel
Allow InventoryScript JSON with childgroups only
-rw-r--r--lib/ansible/inventory/script.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/inventory/script.py b/lib/ansible/inventory/script.py
index 1fa49e5053..042fa8c24a 100644
--- a/lib/ansible/inventory/script.py
+++ b/lib/ansible/inventory/script.py
@@ -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: