mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #10560 from hulu/dig-shadowing
avoid shadowing in dig module
This commit is contained in:
commit
c84716c7cc
@ -171,9 +171,9 @@ def NS(domain, resolve=True, nameserver=None):
|
||||
|
||||
if resolve:
|
||||
ret = []
|
||||
for ns in cmd['stdout'].split('\n'):
|
||||
for a in A(ns, nameserver):
|
||||
ret.append(a)
|
||||
for ns_host in cmd['stdout'].split('\n'):
|
||||
for ip_addr in A(ns_host, nameserver):
|
||||
ret.append(ip_addr)
|
||||
return ret
|
||||
|
||||
return cmd['stdout'].split('\n')
|
||||
|
Loading…
Reference in New Issue
Block a user