API: Set Object name when expunging VM (#11352)

This commit is contained in:
Pearl Dsilva 2025-07-31 01:41:40 -04:00 committed by GitHub
parent 7e0414354a
commit 2944bd1eda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -140,7 +140,8 @@ public class DestroyVMCmd extends BaseAsyncCmd implements UserCmd {
if (responses != null && !responses.isEmpty()) { if (responses != null && !responses.isEmpty()) {
response = responses.get(0); response = responses.get(0);
} }
response.setResponseName("virtualmachine"); response.setResponseName(getCommandName());
response.setObjectName("virtualmachine");
setResponseObject(response); setResponseObject(response);
} else { } else {
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to destroy vm"); throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to destroy vm");