mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fixes #22792
This commit is contained in:
parent
977edf1755
commit
90fa6dede7
@ -38,7 +38,7 @@ def targets(tgt, tgt_type='glob', **kwargs):
|
|||||||
ports = list(map(int, str(ports).split(',')))
|
ports = list(map(int, str(ports).split(',')))
|
||||||
|
|
||||||
hosts = list(NodeSet(tgt))
|
hosts = list(NodeSet(tgt))
|
||||||
host_addrs = {h: socket.gethostbyname(h) for h in hosts}
|
host_addrs = dict([(h, socket.gethostbyname(h)) for h in hosts])
|
||||||
|
|
||||||
for host, addr in host_addrs.items():
|
for host, addr in host_addrs.items():
|
||||||
addr = str(addr)
|
addr = str(addr)
|
||||||
|
Loading…
Reference in New Issue
Block a user