mirror of https://github.com/apache/cloudstack.git
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
This commit is contained in:
parent
8bb43effe7
commit
b00260060e
|
|
@ -99,7 +99,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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue