cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahu...@apache.org
Subject [31/50] [abbrv] git commit: updated refs/heads/vmsync to 3c2aa18
Date Thu, 27 Jun 2013 20:57:33 GMT
CLOUDSTACK-3213: ResourceStateEvents for user VM are generated with
entity type as Network

changing entity type to be VirtualMachine from Network for the events
generated by user vm state transitions


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

Branch: refs/heads/vmsync
Commit: 4bc62947464c9a062c9513e5cff3a9a96416e0a0
Parents: ff16713
Author: Murali Reddy <muralimmreddy@gmail.com>
Authored: Wed Jun 26 19:33:24 2013 +0530
Committer: Murali Reddy <muralimmreddy@gmail.com>
Committed: Wed Jun 26 19:33:24 2013 +0530

----------------------------------------------------------------------
 server/src/com/cloud/vm/UserVmStateListener.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4bc62947/server/src/com/cloud/vm/UserVmStateListener.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/vm/UserVmStateListener.java b/server/src/com/cloud/vm/UserVmStateListener.java
index 3feecbb..d270e60 100644
--- a/server/src/com/cloud/vm/UserVmStateListener.java
+++ b/server/src/com/cloud/vm/UserVmStateListener.java
@@ -104,7 +104,7 @@ public class UserVmStateListener implements StateListener<State, VirtualMachine.
             return; // no provider is configured to provide events bus, so just return
         }
 
-        String resourceName = getEntityFromClassName(Network.class.getName());
+        String resourceName = getEntityFromClassName(VirtualMachine.class.getName());
         org.apache.cloudstack.framework.events.Event eventMsg =  new org.apache.cloudstack.framework.events.Event(
                 ManagementServer.Name,
                 EventCategory.RESOURCE_STATE_CHANGE_EVENT.getName(),


Mime
View raw message