Attach volume events are not correctly shown in events.

Signed-off-by: Koushik Das <koushik@apache.org>
This commit is contained in:
Damodar 2014-12-04 12:32:37 +05:30 committed by Koushik Das
parent 608b0c5a24
commit 7b8fe0c8cd

View File

@ -1157,6 +1157,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
}
@Override
@ActionEvent(eventType = EventTypes.EVENT_VOLUME_ATTACH, eventDescription = "attaching volume", async = true)
public Volume attachVolumeToVM(AttachVolumeCmd command) {
return attachVolumeToVM(command.getVirtualMachineId(), command.getId(), command.getDeviceId());
}
@ -1231,7 +1232,6 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
return newVol;
}
@ActionEvent(eventType = EventTypes.EVENT_VOLUME_ATTACH, eventDescription = "attaching volume", async = true)
public Volume attachVolumeToVM(Long vmId, Long volumeId, Long deviceId) {
Account caller = CallContext.current().getCallingAccount();