mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8411. Unable to delete an uploaded volume after CCP fails to attach the volume to a VM.
Correctly update the status of an uploaded volume upon failure to attach it to a VM.
(cherry picked from commit 10a106f5d8)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
e1db982d6b
commit
6c649ce3ae
|
|
@ -889,7 +889,7 @@ public class VolumeServiceImpl implements VolumeService {
|
|||
AsyncCallFuture<VolumeApiResult> future = context.future;
|
||||
VolumeApiResult res = new VolumeApiResult(destVolume);
|
||||
try {
|
||||
if (res.isFailed()) {
|
||||
if (result.isFailed()) {
|
||||
destVolume.processEvent(Event.OperationFailed);
|
||||
srcVolume.processEvent(Event.OperationFailed);
|
||||
res.setResult(result.getResult());
|
||||
|
|
|
|||
Loading…
Reference in New Issue