CLI: api.register type preservation

This commit is contained in:
Johannes Kirschbauer
2024-09-16 13:16:57 +02:00
committed by kenji
parent cf24170d0d
commit b4e3dff23b
4 changed files with 7 additions and 5 deletions

View File

@@ -198,7 +198,7 @@ def generate_machine_hardware_info(
f"HW/report: Hardware configuration for {machine_name}",
)
try:
show_machine_hardware_platform(clan_dir, machine_name)
show_machine_hardware_platform(clan_dir.path, machine_name)
except ClanCmdError as e:
log.exception("Failed to evaluate hardware-configuration.nix")
# Restore the backup file
@@ -235,7 +235,7 @@ def hw_generate_command(args: argparse.Namespace) -> None:
force=args.force,
)
hw_info = generate_machine_hardware_info(
opts.flake, opts.machine, opts.target_host, opts.password, opts.force
opts.flake, opts.machine, opts.target_host, opts.password
)
print("Successfully generated hardware information.")
print(f"Target: {opts.machine} ({opts.target_host})")