You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/11/26 14:10:21 UTC
[GitHub] rafaelweingartner commented on a change in pull request #2793:
Destroyvm also removes volumes
rafaelweingartner commented on a change in pull request #2793: Destroyvm also removes volumes
URL: https://github.com/apache/cloudstack/pull/2793#discussion_r236267030
##########
File path: server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
##########
@@ -1857,8 +1857,13 @@ private void validateRootVolumeDetachAttach(VolumeVO volume, UserVmVO vm) {
}
}
- private Volume orchestrateDetachVolumeFromVM(long vmId, long volumeId) {
+ @ActionEvent(eventType = EventTypes.EVENT_VOLUME_DETACH, eventDescription = "detaching volume")
+ public Volume detachVolumeViaDestroyVM(long vmId, long volumeId) {
+ Volume result = orchestrateDetachVolumeFromVM(vmId, volumeId);
Review comment:
you can use directly `return orchestrateDetachVolumeFromVM(vmId, volumeId);`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services