mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Specify vm snapshot uuid in response over db id in the async job response (#6449)
This commit is contained in:
parent
b1c8b5ab37
commit
15a2cc6c68
@ -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");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user