<s> from lib . actions import SingleVMAction <EOL> __all__ = [ <EOL> '<STR_LIT>' <EOL> ] <EOL> class StartVMAction ( SingleVMAction ) : <EOL> api_type = '<STR_LIT>' <EOL> def run ( self , credentials , vm_id ) : <EOL> driver = self . _get_driver_for_credentials ( credentials = credentials ) <EOL> node = self . _get_node_for_id ( node_id = vm_id , driver = driver ) <EOL> self . logger . info ( '<STR_LIT>' % ( node ) ) <EOL> status = driver . ex_start_node ( node = node ) <EOL> if status is True : <EOL> self . logger . info ( '<STR_LIT>' % ( node ) ) <EOL> else : <EOL> self . logger . error ( '<STR_LIT>' % ( node ) ) <EOL> return status </s>
