expose nixos-facter in cli

This commit is contained in:
Jörg Thalheim
2024-09-25 18:17:25 +02:00
parent 1497bbccbf
commit 07e031f256
2 changed files with 17 additions and 12 deletions

View File

@@ -81,7 +81,7 @@ const InstallMachine = (props: InstallMachineProps) => {
machine_name: props.name,
});
if (result.status === "error") throw new Error("Failed to fetch data");
return result.data?.file === "nixos-facter" || null;
return result.data?.backend === "nixos-facter" || null;
}
return null;
},
@@ -157,7 +157,7 @@ const InstallMachine = (props: InstallMachineProps) => {
machine_name: props.name,
keyfile: props.sshKey?.name,
hostname: props.targetHost,
report_type: "nixos-facter",
backend: "nixos-facter",
});
toast.dismiss(loading_toast);
hwInfoQuery.refetch();