

def _get_virt_event(self, instance_uuid, instance_state):
    transition = self._TRANSITION_MAP[instance_state]
    return virtevent.LifecycleEvent(uuid=instance_uuid, transition=transition)

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