mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #1805 from ioito/hotfix/qx-openstack-storage
允许更改openstack存储容量
This commit is contained in:
@@ -635,7 +635,9 @@ func (self *SStorage) syncWithCloudStorage(ctx context.Context, userCred mcclien
|
||||
self.Status = extStorage.GetStatus()
|
||||
self.StorageType = extStorage.GetStorageType()
|
||||
self.MediumType = extStorage.GetMediumType()
|
||||
self.Capacity = extStorage.GetCapacityMB()
|
||||
if capacity := extStorage.GetCapacityMB(); capacity != 0 {
|
||||
self.Capacity = capacity
|
||||
}
|
||||
self.StorageConf = extStorage.GetStorageConf()
|
||||
|
||||
self.Enabled = tristate.NewFromBool(extStorage.GetEnabled())
|
||||
|
||||
@@ -53,7 +53,7 @@ func (storage *SStorage) GetGlobalId() string {
|
||||
}
|
||||
|
||||
func (storage *SStorage) IsEmulated() bool {
|
||||
return true
|
||||
return false
|
||||
}
|
||||
|
||||
func (storage *SStorage) GetIZone() cloudprovider.ICloudZone {
|
||||
|
||||
Reference in New Issue
Block a user