Nir Soffer has posted comments on this change.

Change subject: vdsm: lastclient info in jsonrpc
......................................................................


Patch Set 6:

(1 comment)

Looks like the right direction, can be nicer using the bridge.

http://gerrit.ovirt.org/#/c/28817/6/lib/yajsonrpc/__init__.py
File lib/yajsonrpc/__init__.py:

Line 490:             res = True if res is None else res
Line 491:             if mangledMethod == 'Host_getCapabilities':
Line 492:                 res['lastClient'] = ctx.client.addr[0]
Line 493:                 res['lastClientIface'] = getDeviceByIP(
Line 494:                     ctx.client.socket.getsockname()[0])
I think the right thing is to register a callable in the bridge that takes the 
results of Host_getCapabilities and add the needed into in it.
Line 495:             ctx.requestDone(JsonRpcResponse(res, None, req.id))
Line 496: 
Line 497:     @traceback(on=log.name)
Line 498:     def serve_requests(self):


-- 
To view, visit http://gerrit.ovirt.org/28817
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I402e15cb05f89a98dab14491d9da5985335e095e
Gerrit-PatchSet: 6
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Piotr Kliczewski <[email protected]>
Gerrit-Reviewer: Antoni Segura Puimedon <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Nir Soffer <[email protected]>
Gerrit-Reviewer: Piotr Kliczewski <[email protected]>
Gerrit-Reviewer: Saggi Mizrahi <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to