mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Turns out "hostId" is not a good unique host identifier in openstack.
Switching to use "id" instead.
This commit is contained in:
parent
c45a422590
commit
19901ba7cf
@ -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)
|
||||
|
||||
@ -531,7 +531,7 @@ OPENSTACK_ENABLED_VALUE = 'ACTIVE'
|
||||
OPENSTACK_GROUP_FILTER = r'^.+$'
|
||||
OPENSTACK_HOST_FILTER = r'^.+$'
|
||||
OPENSTACK_EXCLUDE_EMPTY_GROUPS = True
|
||||
OPENSTACK_INSTANCE_ID_VAR = "hostId"
|
||||
OPENSTACK_INSTANCE_ID_VAR = "id"
|
||||
|
||||
# ---------------------
|
||||
# -- Activity Stream --
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user