mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
remove unnecessary block parsing ip addrs for nova
This block shouldn't be necessary, we correctly parse the ipaddrs in the
NovaServer class now. This was added in commit
47ecb7a150
This commit is contained in:
parent
858e5c1772
commit
019671d4c2
@ -804,14 +804,6 @@ def create(vm_):
|
||||
'access_ip' in node.get('extra', {}):
|
||||
result = [node['extra']['access_ip']]
|
||||
|
||||
if not result:
|
||||
temp_dd = node.get('addresses', {})
|
||||
for k, addr_ll in temp_dd.iteritems():
|
||||
for addr_dd in addr_ll:
|
||||
addr = addr_dd.get('addr', None)
|
||||
if addr is not None:
|
||||
result.append(addr.strip())
|
||||
|
||||
private = node.get('private_ips', [])
|
||||
public = node.get('public_ips', [])
|
||||
if private and not public:
|
||||
|
Loading…
Reference in New Issue
Block a user