#NEWLINE# @ staticmethod #NEWLINE# def isVmRunning( name ) : #NEWLINE# #INDENT# conn = XendManager . __getROConnection ( ) #NEWLINE# try : #NEWLINE# #INDENT# dom = conn . lookupByName ( name ) #NEWLINE# return dom . isActive ( ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# return False