cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthon...@apache.org
Subject git commit: updated refs/heads/master to b747549
Date Wed, 23 Oct 2013 23:03:21 GMT
Updated Branches:
  refs/heads/master 7120c1eb9 -> b74754959


CLOUDSTACK-4649:
      get VM details from DB

Anthony


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b7475495
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b7475495
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b7475495

Branch: refs/heads/master
Commit: b747549597cf0b66296a72a03f81553017522a61
Parents: 7120c1e
Author: Anthony Xu <anthony.xu@citrix.com>
Authored: Wed Oct 23 16:02:44 2013 -0700
Committer: Anthony Xu <anthony.xu@citrix.com>
Committed: Wed Oct 23 16:02:44 2013 -0700

----------------------------------------------------------------------
 server/src/com/cloud/hypervisor/HypervisorGuruBase.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b7475495/server/src/com/cloud/hypervisor/HypervisorGuruBase.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/hypervisor/HypervisorGuruBase.java b/server/src/com/cloud/hypervisor/HypervisorGuruBase.java
index 32c7693..a528334 100644
--- a/server/src/com/cloud/hypervisor/HypervisorGuruBase.java
+++ b/server/src/com/cloud/hypervisor/HypervisorGuruBase.java
@@ -39,12 +39,14 @@ import com.cloud.vm.VirtualMachineProfile;
 import com.cloud.vm.dao.NicDao;
 import com.cloud.vm.dao.NicSecondaryIpDao;
 import com.cloud.vm.dao.VMInstanceDao;
+import com.cloud.vm.dao.UserVmDetailsDao;
 
 public abstract class HypervisorGuruBase extends AdapterBase implements HypervisorGuru {
 
     @Inject VMTemplateDetailsDao _templateDetailsDao;
     @Inject NicDao _nicDao;
     @Inject VMInstanceDao _virtualMachineDao;
+    @Inject UserVmDetailsDao _userVmDetailsDao;
     @Inject NicSecondaryIpDao _nicSecIpDao;
     @Inject ConfigurationServer _configServer;
 
@@ -113,7 +115,7 @@ public abstract class HypervisorGuruBase extends AdapterBase implements
Hypervis
             to.setArch("x86_64");
         }
 
-        Map<String, String> detailsInVm = vm.getDetails();
+        Map<String, String> detailsInVm = _userVmDetailsDao.findDetails(vm.getId());
         if(detailsInVm != null) {
             to.setDetails(detailsInVm);
         }


Mime
View raw message