clan-lib: Rename parse_deployment_address to parse_ssh_uri
This commit is contained in:
@@ -167,7 +167,7 @@ def update_hardware_config_command(args: argparse.Namespace) -> None:
|
||||
)
|
||||
|
||||
if args.target_host:
|
||||
target_host = Remote.from_deployment_address(
|
||||
target_host = Remote.from_ssh_uri(
|
||||
machine_name=machine.name, address=args.target_host
|
||||
).override(host_key_check=host_key_check)
|
||||
else:
|
||||
|
||||
@@ -185,7 +185,7 @@ def install_command(args: argparse.Namespace) -> None:
|
||||
host_key_check = args.host_key_check
|
||||
|
||||
if target_host_str is not None:
|
||||
target_host = Remote.from_deployment_address(
|
||||
target_host = Remote.from_ssh_uri(
|
||||
machine_name=machine.name, address=target_host_str
|
||||
).override(host_key_check=host_key_check)
|
||||
else:
|
||||
|
||||
@@ -275,7 +275,7 @@ def update_command(args: argparse.Namespace) -> None:
|
||||
with AsyncRuntime() as runtime:
|
||||
for machine in machines:
|
||||
if args.target_host:
|
||||
target_host = Remote.from_deployment_address(
|
||||
target_host = Remote.from_ssh_uri(
|
||||
machine_name=machine.name,
|
||||
address=args.target_host,
|
||||
).override(host_key_check=host_key_check)
|
||||
|
||||
Reference in New Issue
Block a user