clan-cli deploy_info: fix find_reachable_host returning unreachable hosts
This commit is contained in:
@@ -54,11 +54,13 @@ def find_reachable_host(
|
|||||||
host = None
|
host = None
|
||||||
for addr in deploy_info.addrs:
|
for addr in deploy_info.addrs:
|
||||||
host_addr = f"[{addr}]" if is_ipv6(addr) else addr
|
host_addr = f"[{addr}]" if is_ipv6(addr) else addr
|
||||||
host = parse_deployment_address(
|
host_ = parse_deployment_address(
|
||||||
machine_name="uknown", host=host_addr, host_key_check=host_key_check
|
machine_name="uknown", host=host_addr, host_key_check=host_key_check
|
||||||
)
|
)
|
||||||
if is_ssh_reachable(host):
|
if is_ssh_reachable(host_):
|
||||||
|
host = host_
|
||||||
break
|
break
|
||||||
|
|
||||||
return host
|
return host
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user