mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Merge pull request #14984 from cboylan/fix-openstack-inventory
Fix openstack inventory for multiple servers
This commit is contained in:
@@ -149,7 +149,7 @@ def get_host_groups_from_cloud(inventory):
|
|||||||
else:
|
else:
|
||||||
for server in servers:
|
for server in servers:
|
||||||
append_hostvars(
|
append_hostvars(
|
||||||
hostvars, groups, server['id'], servers[0],
|
hostvars, groups, server['id'], server,
|
||||||
namegroup=True)
|
namegroup=True)
|
||||||
groups['_meta'] = {'hostvars': hostvars}
|
groups['_meta'] = {'hostvars': hostvars}
|
||||||
return groups
|
return groups
|
||||||
|
|||||||
Reference in New Issue
Block a user