mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Merge pull request #13101 from grischa/nova-cloud-fixes
some fixes for the nova cloud adapter
This commit is contained in:
commit
e9ac938b73
@ -758,7 +758,8 @@ def list_nodes(call=None, **kwargs):
|
||||
'image': server_tmp['image']['id'],
|
||||
'size': server_tmp['flavor']['id'],
|
||||
'state': server_tmp['state'],
|
||||
'private_ips': [addrs['addr'] for addrs in server_tmp['addresses']['private']],
|
||||
'private_ips': [addrs['addr'] for addrs in
|
||||
server_tmp['addresses'].get('private', [])],
|
||||
'public_ips': [server_tmp['accessIPv4'], server_tmp['accessIPv6']],
|
||||
}
|
||||
return ret
|
||||
|
@ -153,7 +153,7 @@ class SaltNova(object):
|
||||
self.kwargs['bypass_url'] = get_entry(
|
||||
servers_endpoints,
|
||||
'region',
|
||||
region_name.upper()
|
||||
region_name
|
||||
)['publicURL']
|
||||
|
||||
self.compute_conn = client.Client(**self.kwargs)
|
||||
@ -167,7 +167,7 @@ class SaltNova(object):
|
||||
self.kwargs['bypass_url'] = get_entry(
|
||||
servers_endpoints,
|
||||
'region',
|
||||
region_name.upper()
|
||||
region_name
|
||||
)['publicURL']
|
||||
|
||||
self.kwargs['service_type'] = 'volume'
|
||||
|
Loading…
Reference in New Issue
Block a user