mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): avoid storage update not work
This commit is contained in:
@@ -132,11 +132,11 @@ func (self *SStorage) ValidateUpdateData(ctx context.Context, userCred mcclient.
|
||||
if err != nil {
|
||||
return input, err
|
||||
}
|
||||
input.StorageConf = jsonutils.NewDict()
|
||||
if self.StorageConf != nil {
|
||||
input.StorageConf = self.StorageConf.(*jsonutils.JSONDict)
|
||||
} else {
|
||||
input.StorageConf = jsonutils.NewDict()
|
||||
input.StorageConf.Update(jsonutils.Marshal(self.StorageConf))
|
||||
}
|
||||
|
||||
driver := GetStorageDriver(self.StorageType)
|
||||
if driver != nil {
|
||||
return driver.ValidateUpdateData(ctx, userCred, input)
|
||||
|
||||
Reference in New Issue
Block a user