Back out "cli: don't update macOS machines"

This backs out commit 72ed0e258a.
This commit is contained in:
Michael Hoang
2025-04-12 17:04:27 +02:00
parent 1f78de953a
commit 2bbf4b168a

View File

@@ -231,8 +231,6 @@ def update_command(args: argparse.Namespace) -> None:
if len(args.machines) == 0: if len(args.machines) == 0:
ignored_machines = [] ignored_machines = []
for machine in get_all_machines(args.flake, args.option): for machine in get_all_machines(args.flake, args.option):
if machine._class_ == "darwin":
continue
if machine.deployment.get("requireExplicitUpdate", False): if machine.deployment.get("requireExplicitUpdate", False):
continue continue
try: try:
@@ -260,11 +258,6 @@ def update_command(args: argparse.Namespace) -> None:
machine.override_build_host = args.build_host machine.override_build_host = args.build_host
machine.host_key_check = HostKeyCheck.from_str(args.host_key_check) machine.host_key_check = HostKeyCheck.from_str(args.host_key_check)
for machine in machines:
if machine._class_ == "darwin":
machine.error("Updating macOS machines is not yet supported")
sys.exit(1)
config = nix_config() config = nix_config()
system = config["system"] system = config["system"]
machine_names = [machine.name for machine in machines] machine_names = [machine.name for machine in machines]