Merge pull request #2564 from tb365/bugfix/tb-bugfix-0826

aws disk resize bugfix
This commit is contained in:
yunion-ci-robot
2019-08-26 15:25:10 +08:00
committed by GitHub
+6 -1
View File
@@ -241,7 +241,12 @@ func (self *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error) {
}
func (self *SDisk) Resize(ctx context.Context, newSizeMb int64) error {
return self.storage.zone.region.resizeDisk(self.DiskId, newSizeMb)
err := self.storage.zone.region.resizeDisk(self.DiskId, newSizeMb)
if err != nil {
return err
}
return cloudprovider.WaitStatusWithDelay(self, api.DISK_READY, 5*time.Second, 5*time.Second, 90*time.Second)
}
func (self *SDisk) Reset(ctx context.Context, snapshotId string) (string, error) {