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: 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