Merge pull request #14984 from cboylan/fix-openstack-inventory
Fix openstack inventory for multiple servers
This commit is contained in:
commit
e254bf9617
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue