propellor spin
This commit is contained in:
parent
0928b56060
commit
536d9fec70
|
@ -102,6 +102,7 @@ getSshTarget target hst
|
|||
go (Left e) = useip (show e)
|
||||
go (Right addrinfos) = do
|
||||
configaddrinfos <- catMaybes <$> mapM iptoaddr configips
|
||||
print (configips, configaddrinfos, map addrAddress addrinfos)
|
||||
if any (`elem` configaddrinfos) (map addrAddress addrinfos)
|
||||
then return target
|
||||
else useip ("DNS lookup did not return any of the expected addresses " ++ show configips)
|
||||
|
|
Loading…
Reference in New Issue