def close(self): req = TCloseOperationReq(operationHandle=self.handle) self._rpc('CloseOperation', req)
def close_operation(service, operation_handle): req = TCloseOperationReq(operationHandle=operation_handle) log.debug('close_operation: req=%s', req) resp = service.CloseOperation(req) log.debug('close_operation: resp=%s', resp) err_if_rpc_not_ok(resp)