mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix Usage event when a volume in allocated state is deleted (#5901)
Co-authored-by: SadiJr <sadi@scclouds.com.br>
This commit is contained in:
parent
5d1e54a4ab
commit
e7082d9384
@ -1605,6 +1605,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
||||
_volsDao.remove(volume.getId());
|
||||
try {
|
||||
stateTransitTo(volume, Volume.Event.DestroyRequested);
|
||||
stateTransitTo(volume, Volume.Event.OperationSucceeded);
|
||||
} catch (NoTransitionException e) {
|
||||
s_logger.debug("Failed to destroy volume" + volume.getId(), e);
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user