Merge pull request #34499 from gtmanfred/2016.3

remove unnecessary block parsing ip addrs for nova
This commit is contained in:
Mike Place 2016-07-07 10:23:46 -06:00 committed by GitHub
commit 58f46eae15

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: