fix build_host set if it doesn't exist

This commit is contained in:
Jörg Thalheim
2025-05-06 09:52:25 +02:00
parent a44fee9eab
commit 0d1e642dfd

View File

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