this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(api): swap incorrect install state

Khue Doan 89cbef76 21d54c00

+2 -2
+2 -2
internal/serve/api.go
··· 61 61 // TODO IMPORTANT support SSH key 62 62 if err := nixos.Install(api.ctx, flake, "root", ip, "nixos-installer", api.debug); err != nil { 63 63 log.Error("failed to install NixOS", "ip", ip, "flake", flake, "error", err) 64 - host.SetState(hosts.StateInstalled) 64 + host.SetState(hosts.StateFailed) 65 65 } else { 66 66 log.Info("successfully installed NixOS", "ip", ip, "flake", flake) 67 - host.SetState(hosts.StateFailed) 67 + host.SetState(hosts.StateInstalled) 68 68 } 69 69 }() 70 70