<s> from pyVmomi import vim <EOL> from vmwarelib . actions import BaseAction <EOL> class StartVM ( BaseAction ) : <EOL> def run ( self , vm ) : <EOL> si = self . si <EOL> vm_obj = vim . VirtualMachine ( vm , stub = si . _stub ) <EOL> task = vm_obj . PowerOnVM_Task ( None ) <EOL> success = self . _wait_for_task ( task ) <EOL> return { '<STR_LIT:success>' : success } </s>
