1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #14984 from cboylan/fix-openstack-inventory

Fix openstack inventory for multiple servers
This commit is contained in:
Monty Taylor 2016-03-16 09:51:11 -04:00
commit e254bf9617

View file

@ -149,7 +149,7 @@ def get_host_groups_from_cloud(inventory):
else:
for server in servers:
append_hostvars(
hostvars, groups, server['id'], servers[0],
hostvars, groups, server['id'], server,
namegroup=True)
groups['_meta'] = {'hostvars': hostvars}
return groups