Commit dcde9bcd by Michael DeHaan

Merge pull request #3100 from dstoflet/devel

Support for all:vars in script inventories
parents 3b77d17a c0baf108
......@@ -76,7 +76,11 @@ class InventoryScript(object):
if 'vars' in data:
for k, v in data['vars'].iteritems():
if group.name == all.name:
all.set_variable(k, v)
else:
group.set_variable(k, v)
if group.name != all.name:
all.add_child_group(group)
# Separate loop to ensure all groups are defined
......
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