This is an automated email from the ASF dual-hosted git repository.
nvazquez pushed a commit to branch 4.16
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.16 by this push:
new 15a2cc6c68 Specify vm snapshot uuid in response over db id in the
async job response (#6449)
15a2cc6c68 is described below
commit 15a2cc6c68a84f865e7824914d24362443fe4138
Author: Pearl Dsilva <[email protected]>
AuthorDate: Fri Jun 10 16:15:11 2022 +0530
Specify vm snapshot uuid in response over db id in the async job response
(#6449)
---
.../cloudstack/api/command/user/vmsnapshot/CreateVMSnapshotCmd.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/api/src/main/java/org/apache/cloudstack/api/command/user/vmsnapshot/CreateVMSnapshotCmd.java
b/api/src/main/java/org/apache/cloudstack/api/command/user/vmsnapshot/CreateVMSnapshotCmd.java
index 7cb3194e97..37449b0d8e 100644
---
a/api/src/main/java/org/apache/cloudstack/api/command/user/vmsnapshot/CreateVMSnapshotCmd.java
+++
b/api/src/main/java/org/apache/cloudstack/api/command/user/vmsnapshot/CreateVMSnapshotCmd.java
@@ -93,6 +93,7 @@ public class CreateVMSnapshotCmd extends BaseAsyncCreateCmd {
VMSnapshot vmsnapshot = _vmSnapshotService.allocVMSnapshot(getVmId(),
getDisplayName(), getDescription(), snapshotMemory());
if (vmsnapshot != null) {
setEntityId(vmsnapshot.getId());
+ setEntityUuid(vmsnapshot.getUuid());
} else {
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed
to create vm snapshot");
}