cli machines update: remove dead code

This commit is contained in:
lassulus
2024-11-27 10:32:57 +01:00
parent ca6b5d09af
commit 354a71f574

View File

@@ -35,11 +35,10 @@ def is_path_input(node: dict[str, dict[str, str]]) -> bool:
return locked["type"] == "path" or locked.get("url", "").startswith("file://")
def upload_sources(machine: Machine, always_upload_source: bool = False) -> str:
def upload_sources(machine: Machine) -> str:
host = machine.build_host
env = host.nix_ssh_env(os.environ.copy())
if not always_upload_source:
flake_url = (
str(machine.flake.path) if machine.flake.is_local() else machine.flake.url
)
@@ -121,7 +120,7 @@ def deploy_machine(machines: MachineGroup) -> None:
upload_secret_vars(machine)
path = upload_sources(
machine,
machine=machine,
)
nix_options = [