mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #34499 from gtmanfred/2016.3
remove unnecessary block parsing ip addrs for nova
This commit is contained in:
commit
58f46eae15
1 changed files with 0 additions and 8 deletions
|
@ -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…
Add table
Reference in a new issue