Skip to content

Commit 458a417

Browse files
Pearl1594dhslove
authored andcommitted
API: Set Object name when expunging VM (apache#11352)
1 parent 0f411a0 commit 458a417

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/src/main/java/org/apache/cloudstack/api/command/user/vm/DestroyVMCmd.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ public void execute() throws ResourceUnavailableException, ConcurrentOperationEx
140140
if (responses != null && !responses.isEmpty()) {
141141
response = responses.get(0);
142142
}
143-
response.setResponseName("virtualmachine");
143+
response.setResponseName(getCommandName());
144+
response.setObjectName("virtualmachine");
144145
setResponseObject(response);
145146
} else {
146147
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to destroy vm");

0 commit comments

Comments
 (0)