allow ipv6 addresses in deployment addresses
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import subprocess
|
||||
|
||||
from clan_cli.ssh import Host, HostGroup
|
||||
from clan_cli.ssh import Host, HostGroup, parse_deployment_address
|
||||
|
||||
|
||||
def test_parse_ipv6() -> None:
|
||||
host = parse_deployment_address("foo", "[fe80::1%eth0]:2222")
|
||||
assert host.host == "fe80::1%eth0"
|
||||
assert host.port == 2222
|
||||
|
||||
|
||||
def test_run(host_group: HostGroup) -> None:
|
||||
|
||||
Reference in New Issue
Block a user