diff --git a/contrib/inventory/openstack.py b/contrib/inventory/openstack.py index cc1f6dbed6..e868778850 100755 --- a/contrib/inventory/openstack.py +++ b/contrib/inventory/openstack.py @@ -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