add SIM lint

This commit is contained in:
Jörg Thalheim
2024-09-02 16:29:50 +02:00
parent a17075f237
commit 483d8ce521
25 changed files with 59 additions and 85 deletions

View File

@@ -166,10 +166,7 @@ def find_reachable_host_from_deploy_json(deploy_json: dict[str, str]) -> str:
host = None
for addr in deploy_json["addrs"]:
if is_reachable(addr):
if is_ipv6(addr):
host = f"[{addr}]"
else:
host = addr
host = f"[{addr}]" if is_ipv6(addr) else addr
break
if not host:
msg = f"""