Revision bc57fa8d lib/rapi/rlib2.py

b/lib/rapi/rlib2.py
901 901
    """Returns a list of all available instances.
902 902

  
903 903
    """
904
    client = self.GetClient()
904
    client = self.GetClient(query=True)
905 905

  
906 906
    use_locking = self.useLocking()
907 907
    if self.useBulk():
......
981 981
    """Send information about an instance.
982 982

  
983 983
    """
984
    client = self.GetClient()
984
    client = self.GetClient(query=True)
985 985
    instance_name = self.items[0]
986 986

  
987 987
    result = baserlib.HandleItemQueryErrors(client.QueryInstances,
......
1411 1411
  PUT_OPCODE = opcodes.OpQuery
1412 1412

  
1413 1413
  def _Query(self, fields, qfilter):
1414
    return self.GetClient().Query(self.items[0], fields, qfilter).ToDict()
1414
    client = self.GetClient()
1415
    return client.Query(self.items[0], fields, qfilter).ToDict()
1415 1416

  
1416 1417
  def GET(self):
1417 1418
    """Returns resource information.

Also available in: Unified diff