From f70b55daa26d0ce32c138f3a2ecf4a65a0e5422d Mon Sep 17 00:00:00 2001 From: abhishek Date: Mon, 1 Nov 2010 12:16:14 -0700 Subject: [PATCH] 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 --- server/src/com/cloud/api/commands/StopVMCmd.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/src/com/cloud/api/commands/StopVMCmd.java b/server/src/com/cloud/api/commands/StopVMCmd.java index 4d8953b45e0..eb91d276774 100644 --- a/server/src/com/cloud/api/commands/StopVMCmd.java +++ b/server/src/com/cloud/api/commands/StopVMCmd.java @@ -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;