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 bf88be5b25
commit 7ef0f5507d
1 changed files with 1 additions and 1 deletions

View File

@ -1164,6 +1164,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());
}
@ -1238,7 +1239,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();