Revision cd50653c lib/rpc.py
b/lib/rpc.py | ||
---|---|---|
265 | 265 |
|
266 | 266 |
""" |
267 | 267 |
self._cfg = cfg |
268 |
self.port = utils.GetNodeDaemonPort()
|
|
268 |
self.port = utils.GetDaemonPort(constants.NODED)
|
|
269 | 269 |
|
270 | 270 |
def _InstDict(self, instance, hvp=None, bep=None): |
271 | 271 |
"""Convert the given instance to a dict. |
... | ... | |
366 | 366 |
|
367 | 367 |
""" |
368 | 368 |
body = serializer.DumpJson(args, indent=False) |
369 |
c = Client(procedure, body, utils.GetNodeDaemonPort())
|
|
369 |
c = Client(procedure, body, utils.GetDaemonPort(constants.NODED))
|
|
370 | 370 |
c.ConnectList(node_list, address_list=address_list) |
371 | 371 |
return c.GetResults() |
372 | 372 |
|
... | ... | |
388 | 388 |
|
389 | 389 |
""" |
390 | 390 |
body = serializer.DumpJson(args, indent=False) |
391 |
c = Client(procedure, body, utils.GetNodeDaemonPort())
|
|
391 |
c = Client(procedure, body, utils.GetDaemonPort(constants.NODED))
|
|
392 | 392 |
c.ConnectNode(node) |
393 | 393 |
return c.GetResults()[node] |
394 | 394 |
|
Also available in: Unified diff