Merge pull request #1173 from sky-shiny/os_nova_list_addresses
Os nova list addresses
This commit is contained in:
commit
750ca8f4d3
1 changed files with 1 additions and 1 deletions
|
@ -518,7 +518,7 @@ def _get_server_state(module, nova):
|
|||
(ip_changed, server) = _check_floating_ips(module, nova, server)
|
||||
private = openstack_find_nova_addresses(getattr(server, 'addresses'), 'fixed', 'private')
|
||||
public = openstack_find_nova_addresses(getattr(server, 'addresses'), 'floating', 'public')
|
||||
module.exit_json(changed = ip_changed, id = server.id, public_ip = ''.join(public), private_ip = ''.join(private), info = server._info)
|
||||
module.exit_json(changed = ip_changed, id = server.id, public_ip = public, private_ip = private, info = server._info)
|
||||
if server and module.params['state'] == 'absent':
|
||||
return True
|
||||
if module.params['state'] == 'absent':
|
||||
|
|
Loading…
Reference in a new issue