mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
server: fix volume offering not updated after offering change (#12003)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
81787b310e
commit
f0a0936675
@ -1536,6 +1536,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
volume = _volsDao.findById(volumeId);
|
||||||
if (newDiskOfferingId != null) {
|
if (newDiskOfferingId != null) {
|
||||||
volume.setDiskOfferingId(newDiskOfferingId);
|
volume.setDiskOfferingId(newDiskOfferingId);
|
||||||
_volumeMgr.saveVolumeDetails(newDiskOfferingId, volume.getId());
|
_volumeMgr.saveVolumeDetails(newDiskOfferingId, volume.getId());
|
||||||
@ -1550,7 +1551,6 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update size if volume has same size as before, else it is already updated
|
// Update size if volume has same size as before, else it is already updated
|
||||||
volume = _volsDao.findById(volumeId);
|
|
||||||
if (currentSize == volume.getSize() && currentSize != newSize) {
|
if (currentSize == volume.getSize() && currentSize != newSize) {
|
||||||
volume.setSize(newSize);
|
volume.setSize(newSize);
|
||||||
} else if (volume.getSize() != newSize) {
|
} else if (volume.getSize() != newSize) {
|
||||||
|
|||||||
@ -2845,7 +2845,7 @@
|
|||||||
"message.change.offering.confirm": "Please confirm that you wish to change the service offering of this virtual Instance.",
|
"message.change.offering.confirm": "Please confirm that you wish to change the service offering of this virtual Instance.",
|
||||||
"message.change.offering.for.volume": "Successfully changed offering for the volume",
|
"message.change.offering.for.volume": "Successfully changed offering for the volume",
|
||||||
"message.change.offering.for.volume.failed": "Change offering for the volume failed",
|
"message.change.offering.for.volume.failed": "Change offering for the volume failed",
|
||||||
"message.change.offering.processing": "Changing offering for the volume...",
|
"message.change.offering.for.volume.processing": "Changing offering for the volume...",
|
||||||
"message.change.password": "Please change your password.",
|
"message.change.password": "Please change your password.",
|
||||||
"message.change.scope.failed": "Scope change failed",
|
"message.change.scope.failed": "Scope change failed",
|
||||||
"message.change.scope.processing": "Scope change in progress",
|
"message.change.scope.processing": "Scope change in progress",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user