Merge pull request 'fix clan machines update with build-host' (#3512) from build-host into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3512
This commit is contained in:
Mic92
2025-05-06 09:56:48 +00:00

View File

@@ -165,8 +165,7 @@ class Machine:
""" """
build_host = self.override_build_host or self.deployment.get("buildHost") build_host = self.override_build_host or self.deployment.get("buildHost")
if build_host is None: if build_host is None:
with self.target_host() as target_host: yield None
yield target_host
return return
# enable ssh agent forwarding to allow the build host to access the target host # enable ssh agent forwarding to allow the build host to access the target host
yield parse_deployment_address( yield parse_deployment_address(