#NEWLINE# def is_vm_shutdown( session , vm_ref ) : #NEWLINE# #INDENT# state = get_power_state ( session , state ) #NEWLINE# if ( state == power_state . SHUTDOWN ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False