#NEWLINE# def _extend_server( self , server , instance ) : #NEWLINE# #INDENT# for state in [ 'task_state' , 'vm_state' , 'power_state' ] : #NEWLINE# #INDENT# key = ( '%s:%s' % ( 'OS-EXT-STS' , state ) ) #NEWLINE# server [ key ] = instance [ state ]