#NEWLINE# def _extract_state_from_instance( self , instance ) : #NEWLINE# #INDENT# 'Save the useful bits of instance state for tracking purposes.' #NEWLINE# uuid = instance [ 'uuid' ] #NEWLINE# vm_state = instance [ 'vm_state' ] #NEWLINE# task_state = instance [ 'task_state' ] #NEWLINE# os_type = instance [ 'os_type' ] #NEWLINE# project_id = instance [ 'project_id' ] #NEWLINE# self . states [ uuid ] = dict ( vm_state = vm_state , task_state = task_state , os_type = os_type , project_id = project_id ) #NEWLINE# return ( vm_state , task_state , os_type , project_id )