Revision 2cfbc784 lib/server/masterd.py

b/lib/server/masterd.py
310 310
                                             qfilter=qfilter))
311 311
      elif what == constants.QR_LOCK:
312 312
        if qfilter is not None:
313
          raise errors.OpPrereqError("Lock queries can't be filtered")
313
          raise errors.OpPrereqError("Lock queries can't be filtered",
314
                                     errors.ECODE_INVAL)
314 315
        return context.glm.QueryLocks(fields)
315 316
      elif what == constants.QR_JOB:
316 317
        return queue.QueryJobs(fields, qfilter)

Also available in: Unified diff