bug 6399: deployVirtualMachine API should return an embedded object (named "virtualmachine").

status 6399: resolved fixed
This commit is contained in:
nit 2010-10-21 13:46:30 +05:30
parent fa4a16cb68
commit b7d430cf86
1 changed files with 1 additions and 1 deletions

2
server/src/com/cloud/api/commands/DeployVMCmd.java Normal file → Executable file
View File

@ -195,6 +195,7 @@ public class DeployVMCmd extends BaseAsyncCmd {
UserVm userVm = (UserVm)getResponseObject();
UserVmResponse response = new UserVmResponse();
response.setResponseName(getResultObjectName());
response.setId(userVm.getId());
response.setName(userVm.getName());
response.setCreated(userVm.getCreated());
@ -292,7 +293,6 @@ public class DeployVMCmd extends BaseAsyncCmd {
response.setNetworkGroupList(ApiDBUtils.getNetworkGroupsNamesForVm(userVm.getId()));
response.setResponseName(getName());
return response;
}
}