old_contents: # -*- coding: utf-8 -*-
  import logging
  from . import start_vm
  from . import stop_vm
  from ...util.base import BaseStep
  
  LOG = logging.getLogger(__name__)
  
  
  class StartVM(BaseStep):
  
      def __unicode__(self):
          return "Starting VMs..."
  
      def do(self, workflow_dict):
          return start_vm(workflow_dict)
  
      def undo(self, workflow_dict):
          return stop_vm(workflow_dict)
  
new_contents: # -*- coding: utf-8 -*-
  import logging
  from workflow.steps.util.resize import start_vm
  from workflow.steps.util.resize import stop_vm
  from workflow.steps.util.base import BaseStep
  
  LOG = logging.getLogger(__name__)
  
  
  class StartVM(BaseStep):
  
      def __unicode__(self):
          return "Starting VMs..."
  
      def do(self, workflow_dict):
          try:
              return start_vm(workflow_dict)
          except Exception:
              return False
  
      def undo(self, workflow_dict):
          try:
              return stop_vm(workflow_dict)
          except Exception:
              return False
  
subject: improve start vm