Revision a154caa4

b/lib/rapi/baserlib.py
36 36
from ganeti import errors
37 37
from ganeti import compat
38 38
from ganeti import constants
39
from ganeti import pathutils
40 39
from ganeti import utils
41 40

  
42 41

  
......
351 350
    """
352 351
    return bool(self._checkIntVariable("dry-run"))
353 352

  
354
  def GetClient(self, query=True):
353
  def GetClient(self):
355 354
    """Wrapper for L{luxi.Client} with HTTP-specific error handling.
356 355

  
357
    @param query: this signifies that the client will only be used for
358
        queries; if the build-time parameter enable-split-queries is
359
        enabled, then the client will be connected to the query socket
360
        instead of the masterd socket
361

  
362 356
    """
363
    if query:
364
      address = pathutils.QUERY_SOCKET
365
    else:
366
      address = None
367 357
    # Could be a function, pylint: disable=R0201
368 358
    try:
369
      return self._client_cls(address=address)
359
      return self._client_cls()
370 360
    except rpcerr.NoMasterError, err:
371 361
      raise http.HttpBadGateway("Can't connect to master daemon: %s" % err)
372 362
    except rpcerr.PermissionError:

Also available in: Unified diff