mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix: esxi save image fail
This commit is contained in:
@@ -468,11 +468,10 @@ func (as *SAgentStorage) PrepareSaveToGlance(ctx context.Context, taskId string,
|
||||
}
|
||||
|
||||
func (as *SAgentStorage) SaveToGlance(ctx context.Context, params interface{}) (jsonutils.JSONObject, error) {
|
||||
info, ok := params.(SStorageSaveToGlanceInfo)
|
||||
data, ok := params.(jsonutils.JSONObject)
|
||||
if !ok {
|
||||
return nil, hostutils.ParamsError
|
||||
}
|
||||
data := info.DiskInfo
|
||||
|
||||
var (
|
||||
imageId, _ = data.GetString("image_id")
|
||||
|
||||
Reference in New Issue
Block a user