Merge pull request #1805 from ioito/hotfix/qx-openstack-storage

允许更改openstack存储容量
This commit is contained in:
yunion-ci-robot
2019-07-19 00:43:02 +08:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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())
+1 -1
View File
@@ -53,7 +53,7 @@ func (storage *SStorage) GetGlobalId() string {
}
func (storage *SStorage) IsEmulated() bool {
return true
return false
}
func (storage *SStorage) GetIZone() cloudprovider.ICloudZone {