mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
dns_check should not try to connect when connect=False
`dns_check` was still attempting to connect when `connect=False` was used. Fix this use case. Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
This commit is contained in:
parent
9ef3e070c2
commit
880790f743
1 changed files with 1 additions and 0 deletions
|
@ -774,6 +774,7 @@ def dns_check(addr, port, safe=False, ipv6=None, connect=True):
|
|||
|
||||
if not connect:
|
||||
resolved = candidate_addr
|
||||
break
|
||||
|
||||
s = socket.socket(h[0], socket.SOCK_STREAM)
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue