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:
Daniel Wallace 2016-07-06 16:20:21 -05:00
parent 858e5c1772
commit 019671d4c2

View File

@ -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: