Specify vm snapshot uuid in response over db id in the async job response (#6449)

This commit is contained in:
Pearl Dsilva 2022-06-10 16:15:11 +05:30 committed by nvazquez
parent aae0fae950
commit a84664fc9d
No known key found for this signature in database
GPG Key ID: 656E1BCC8CB54F84
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ public class CreateVMSnapshotCmd extends BaseAsyncCreateCmd {
if (vmsnapshot != null) {
setEntityId(vmsnapshot.getId());
setEntityUuid(vmsnapshot.getUuid());
} else {
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to create vm snapshot");
}