

def run(self, credentials, vm_id):
    driver = self._get_driver_for_credentials(credentials=credentials)
    node = self._get_node_for_id(node_id=vm_id, driver=driver)
    self.logger.info(('Destroying node: %s...' % node))
    status = driver.destroy_node(node=node)
    if (status is True):
        self.logger.info(('Successfully destroyed node "%s"' % node))
    else:
        self.logger.error(('Failed to destroy node "%s"' % node))
    return status

dataset/ETHPy150Open StackStorm/st2contrib/packs/libcloud/actions/destroy_vm.py DestroyVMAction.run/original