From 44ec82a28ba99814e103086bc6e1fbdf17dd5bef Mon Sep 17 00:00:00 2001 From: kishan Date: Mon, 13 Jun 2011 15:07:07 +0530 Subject: [PATCH] bug 8992: Added volume ID for snapshot create starting and completed events status 8992: resolved fixed --- api/src/com/cloud/api/commands/CreateSnapshotCmd.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/com/cloud/api/commands/CreateSnapshotCmd.java b/api/src/com/cloud/api/commands/CreateSnapshotCmd.java index d882ba9705e..ca5e0cd30a3 100755 --- a/api/src/com/cloud/api/commands/CreateSnapshotCmd.java +++ b/api/src/com/cloud/api/commands/CreateSnapshotCmd.java @@ -33,6 +33,7 @@ import com.cloud.exception.ResourceAllocationException; import com.cloud.storage.Snapshot; import com.cloud.storage.Volume; import com.cloud.user.Account; +import com.cloud.user.UserContext; @Implementation(description = "Creates an instant snapshot of a volume.", responseObject = SnapshotResponse.class) public class CreateSnapshotCmd extends BaseAsyncCreateCmd { @@ -130,6 +131,7 @@ public class CreateSnapshotCmd extends BaseAsyncCreateCmd { @Override public void execute() { + UserContext.current().setEventDetails("Volume Id: "+getVolumeId()); Snapshot snapshot = _snapshotService.createSnapshot(getVolumeId(), getPolicyId(), getEntityId()); if (snapshot != null) { SnapshotResponse response = _responseGenerator.createSnapshotResponse(snapshot);