clan-cli: Fix clan install command and multiple other issues

This commit is contained in:
Qubasa
2024-12-18 15:29:08 +01:00
parent 695ec0b71c
commit a452cc1a02
5 changed files with 65 additions and 47 deletions

View File

@@ -48,9 +48,11 @@ export const MachineListItem = (props: MachineListItemProps) => {
await toast.promise(
callApi("install_machine", {
opts: {
machine: name,
flake: {
loc: active_clan,
machine: {
name: name,
flake: {
loc: active_clan,
},
},
no_reboot: true,
target_host: info?.deploy.targetHost,

View File

@@ -68,10 +68,12 @@ const InstallMachine = (props: InstallMachineProps) => {
);
const r = await callApi("install_machine", {
opts: {
flake: {
loc: curr_uri,
machine: {
name: props.name,
flake: {
loc: curr_uri,
},
},
machine: props.name,
target_host: props.targetHost,
password: "",
},