From 2b3e847c28e8e87ca1755b8bdfad776a6837f553 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Sun, 6 Jul 2025 19:47:58 +0200 Subject: [PATCH] machine: rename standalone 'get_host' to 'get_machine_host' --- pkgs/clan-cli/clan_lib/machines/machines.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/clan-cli/clan_lib/machines/machines.py b/pkgs/clan-cli/clan_lib/machines/machines.py index ce4a51b6d..be4c81c32 100644 --- a/pkgs/clan-cli/clan_lib/machines/machines.py +++ b/pkgs/clan-cli/clan_lib/machines/machines.py @@ -129,7 +129,7 @@ class Machine: return self.flake.path def target_host(self) -> Remote: - remote = get_host(self.name, self.flake, field="targetHost") + remote = get_machine_host(self.name, self.flake, field="targetHost") if remote is None: msg = f"'targetHost' is not set for machine '{self.name}'" raise ClanError( @@ -144,7 +144,7 @@ class Machine: The host where the machine is built and deployed from. Can be the same as the target host. """ - remote = get_host(self.name, self.flake, field="buildHost") + remote = get_machine_host(self.name, self.flake, field="buildHost") if remote: data = remote.data @@ -176,7 +176,7 @@ class RemoteSource: @API.register -def get_host( +def get_machine_host( name: str, flake: Flake, field: Literal["targetHost", "buildHost"] ) -> RemoteSource | None: """