Revision 306bed0e lib/server/masterd.py

b/lib/server/masterd.py
397 397
      op = opcodes.OpGroupQuery(names=names, output_fields=fields)
398 398
      return self._Query(op)
399 399

  
400
    elif method == luxi.REQ_QUERY_NETWORKS:
401
      (names, fields, use_locking) = args
402
      logging.info("Received network query request for %s", names)
403
      if use_locking:
404
        raise errors.OpPrereqError("Sync queries are not allowed",
405
                                   errors.ECODE_INVAL)
406
      op = opcodes.OpNetworkQuery(names=names, output_fields=fields)
407
      return self._Query(op)
408

  
400 409
    elif method == luxi.REQ_QUERY_EXPORTS:
401 410
      (nodes, use_locking) = args
402 411
      if use_locking:

Also available in: Unified diff