Revision d36e433d lib/luxi.py
b/lib/luxi.py | ||
---|---|---|
30 | 30 |
""" |
31 | 31 |
|
32 | 32 |
from ganeti import constants |
33 |
from ganeti import pathutils |
|
33 | 34 |
from ganeti import objects |
34 | 35 |
import ganeti.rpc.client as cl |
35 | 36 |
from ganeti.rpc.errors import RequestError |
... | ... | |
81 | 82 |
Arguments are the same as for L{AbstractClient}. |
82 | 83 |
|
83 | 84 |
""" |
84 |
super(Client, self).__init__(address, timeouts, transport)
|
|
85 |
super(Client, self).__init__(timeouts, transport) |
|
85 | 86 |
# Override the version of the protocol: |
86 | 87 |
self.version = constants.LUXI_VERSION |
88 |
# Store the socket address |
|
89 |
if address is None: |
|
90 |
address = pathutils.QUERY_SOCKET |
|
91 |
self.address = address |
|
92 |
self._InitTransport() |
|
93 |
|
|
94 |
def _GetAddress(self): |
|
95 |
return self.address |
|
87 | 96 |
|
88 | 97 |
def SetQueueDrainFlag(self, drain_flag): |
89 | 98 |
return self.CallMethod(REQ_SET_DRAIN_FLAG, (drain_flag, )) |
Also available in: Unified diff