fix(region): sync cloudpods host storage info (#23254)

This commit is contained in:
屈轩
2025-09-09 15:59:57 +08:00
committed by GitHub
parent 46e40421ba
commit cfe4d82e78
+5
View File
@@ -22,6 +22,7 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/gotypes"
"yunion.io/x/pkg/tristate"
api "yunion.io/x/onecloud/pkg/apis/compute"
@@ -164,6 +165,10 @@ func (host *SHost) GetStorageDriver() string {
}
func (host *SHost) GetStorageInfo() jsonutils.JSONObject {
if !gotypes.IsNil(host.Spec) {
ret, _ := host.Spec.Get("storage_info")
return ret
}
return host.StorageInfo
}