bug 6380: removing the code which returns hostid and hostname, as on a stopped vm, we do not have any association of the vm to the host

This commit is contained in:
abhishek 2010-11-01 12:16:14 -07:00
parent 9e7c1b69aa
commit f70b55daa2

View File

@ -125,11 +125,6 @@ public class StopVMCmd extends BaseAsyncCmd {
response.setDomainId(acct.getDomainId());
response.setDomainName(ApiDBUtils.findDomainById(acct.getDomainId()).getName());
}
if (BaseCmd.isAdmin(acct.getType()) && (vm.getHostId() != null)) {
response.setHostName(ApiDBUtils.findHostById(vm.getHostId()).getName());
response.setHostId(vm.getHostId());
}
String templateName = "ISO Boot";
boolean templatePasswordEnabled = false;