mirror of https://github.com/jetkvm/kvm.git
fix(cloud): Don't override the CloudURL on deregistration from the cloud.
This commit is contained in:
parent
58a05f7b94
commit
680ecc5eec
2
cloud.go
2
cloud.go
|
@ -297,8 +297,8 @@ func rpcDeregisterDevice() error {
|
|||
// (e.g., wrong cloud token, already deregistered). Regardless of the reason, we can safely remove it.
|
||||
if resp.StatusCode == http.StatusNotFound || (resp.StatusCode >= 200 && resp.StatusCode < 300) {
|
||||
config.CloudToken = ""
|
||||
config.CloudURL = ""
|
||||
config.GoogleIdentity = ""
|
||||
|
||||
if err := SaveConfig(); err != nil {
|
||||
return fmt.Errorf("failed to save configuration after deregistering: %w", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue