expose nixos-facter in cli
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user