def on_exit(old_state, event):
    LOG.debug("Exiting old state '%s' in response to event '%s'",
              old_state, event)
Used to log when a state is exited.
dataset/ETHPy150Open openstack/ironic/ironic/common/states.py/on_exit