Ejemplo n.º 1
0
 def get_log(self, operation_handle):
     try:
         req = TGetLogReq(operationHandle=operation_handle)
         res = self.call(self._client.GetLog, req)
         return res.log
     except:
         return 'Server does not support GetLog()'
Ejemplo n.º 2
0
  def get_log(self, operation_handle):
    try:
      req = TGetLogReq(operationHandle=operation_handle)
      res = self.call(self._client.GetLog, req)
      return res.log
    except Exception, e:
      if 'Invalid query handle' in str(e):
        message = 'Invalid query handle'
        LOG.error('%s: %s' % (message, e))
      else:
        message = 'Error when fetching the logs of the operation.'
        LOG.exception(message)

      return message
Ejemplo n.º 3
0
    def get_log(self, operation_handle):
        req = TGetLogReq(operationHandle=operation_handle)
        res = self.call(self._client.GetLog, req)

        return res.log