Searched refs:old_state (Results 1 – 2 of 2) sorted by relevance
87 def handle_allocation_event(old_state, event): argument91 if old_state == DeviceAllocationState.allocated:92 new_state = old_state98 if old_state == DeviceAllocationState.allocated:99 new_state = old_state
272 old_state = device.device_allocation_state273 new_state = handle_allocation_event(old_state, event)283 if old_state != new_state: