

def _dispatch_event(self, event):
    instance_state = self._vmutils.get_vm_power_state(event.EnabledState)
    instance_name = event.ElementName
    instance_uuid = self._get_instance_uuid(instance_name)
    if instance_uuid:
        self._emit_event(instance_name, instance_uuid, instance_state)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/hyperv/eventhandler.py InstanceEventHandler._dispatch_event/original