mirror of https://github.com/jetkvm/kvm.git
fix: rename redirectUrl to redirectTo
This commit is contained in:
parent
7c5dfd9e50
commit
252dcba7a1
2
hw.go
2
hw.go
|
|
@ -39,7 +39,7 @@ func readOtpEntropy() ([]byte, error) { //nolint:unused
|
||||||
return content[0x17:0x1C], nil
|
return content[0x17:0x1C], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func hwReboot(force bool, postRebootAction *ota.PostRebootAction, delay time.Duration) error { //nolint:unused
|
func hwReboot(force bool, postRebootAction *ota.PostRebootAction, delay time.Duration) error {
|
||||||
logger.Info().Msgf("Reboot requested, rebooting in %d seconds...", delay)
|
logger.Info().Msgf("Reboot requested, rebooting in %d seconds...", delay)
|
||||||
|
|
||||||
writeJSONRPCEvent("willReboot", postRebootAction, currentSession)
|
writeJSONRPCEvent("willReboot", postRebootAction, currentSession)
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ type UpdateStatus struct {
|
||||||
// It is used to redirect the user to a specific page after a reboot
|
// It is used to redirect the user to a specific page after a reboot
|
||||||
type PostRebootAction struct {
|
type PostRebootAction struct {
|
||||||
HealthCheck string `json:"healthCheck"` // The health check URL to call after the reboot
|
HealthCheck string `json:"healthCheck"` // The health check URL to call after the reboot
|
||||||
RedirectUrl string `json:"redirectUrl"` // The URL to redirect to after the reboot
|
RedirectTo string `json:"redirectTo"` // The URL to redirect to after the reboot
|
||||||
}
|
}
|
||||||
|
|
||||||
// componentUpdateStatus represents the status of a component update
|
// componentUpdateStatus represents the status of a component update
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue