This commit is contained in:
Nitin Madhok 2015-04-17 13:57:37 -04:00 committed by rallytime
parent 977edf1755
commit 90fa6dede7

View File

@ -38,7 +38,7 @@ def targets(tgt, tgt_type='glob', **kwargs):
ports = list(map(int, str(ports).split(',')))
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():
addr = str(addr)