mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
OS-EXT-IPS:type is not always defined on addresses
In novaclient servers
This commit is contained in:
parent
849e269a75
commit
90fe817bde
@ -148,7 +148,7 @@ class NovaServer(object):
|
||||
self.public_ips.append(addr['addr'])
|
||||
else:
|
||||
self.private_ips.append(addr['addr'])
|
||||
if addr['OS-EXT-IPS:type'] == 'floating':
|
||||
if addr.get('OS-EXT-IPS:type') == 'floating':
|
||||
self.floating_ips.append(addr['addr'])
|
||||
else:
|
||||
self.fixed_ips.append(addr['addr'])
|
||||
|
Loading…
Reference in New Issue
Block a user