Turns out "hostId" is not a good unique host identifier in openstack.

Switching to use "id" instead.
This commit is contained in:
Matthew Jones
2015-04-23 16:02:44 -04:00
parent c45a422590
commit 19901ba7cf
2 changed files with 2 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ class OpenStackInventory(object):
server_vars = meta['server_vars']
hostvars[server.name]['ansible_ssh_host'] = server_vars['interface_ip']
hostvars[server.name]['openstack'] = server_vars
hostvars[server.name]['hostId'] = server_vars['hostId']
hostvars[server.name]['id'] = server_vars['id']
for group in meta['groups']:
groups[group].append(server.name)