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 b5c1325
Date Thu, 31 Jul 2014 17:37:31 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 89fabe82b -> b5c132582


vmsync returns PowerState for simulator


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

Branch: refs/heads/master
Commit: b5c132582a12d8e78f2b642516fe04fe431e10e2
Parents: 89fabe8
Author: Anthony Xu <anthony.xu@citrix.com>
Authored: Thu Jul 31 10:35:58 2014 -0700
Committer: Anthony Xu <anthony.xu@citrix.com>
Committed: Thu Jul 31 10:37:13 2014 -0700

----------------------------------------------------------------------
 .../simulator/src/com/cloud/resource/AgentRoutingResource.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b5c13258/plugins/hypervisors/simulator/src/com/cloud/resource/AgentRoutingResource.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/simulator/src/com/cloud/resource/AgentRoutingResource.java
b/plugins/hypervisors/simulator/src/com/cloud/resource/AgentRoutingResource.java
index c3c5140..d41576e 100644
--- a/plugins/hypervisors/simulator/src/com/cloud/resource/AgentRoutingResource.java
+++ b/plugins/hypervisors/simulator/src/com/cloud/resource/AgentRoutingResource.java
@@ -286,8 +286,10 @@ public class AgentRoutingResource extends AgentStorageResource {
 
     protected HashMap<String, HostVmStateReportEntry> getHostVmStateReport() {
         HashMap<String, HostVmStateReportEntry> report = new HashMap<String, HostVmStateReportEntry>();
-
         Map<String, PowerState> states = _simMgr.getVmStates(this.hostGuid);
+        for (String vmName : states.keySet()) {
+            report.put(vmName, new HostVmStateReportEntry(states.get(vmName), agentHost.getName()));
+        }
         return report;
     }
 


Mime
View raw message