rpc: Change signature of RpcRunner
authorMichael Hanselmann <hansmi@google.com>
Thu, 5 Jan 2012 20:11:04 +0000 (21:11 +0100)
committerMichael Hanselmann <hansmi@google.com>
Fri, 6 Jan 2012 11:34:47 +0000 (12:34 +0100)
commitd5ea30e8812f10ff74bcbd850c9323aaf024566d
tree1f1eda55aa035f6f7c30b84fb909f772b60438d4
parentf00170e275844bccc8da05e439f77bf2076b1ff0
rpc: Change signature of RpcRunner

Instead of receiving the whole masterd context, it only gets the
configuration and the lock monitor callback. This simplifies
unittesting.

Additionaly, two new arguments for testing are added.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/rpc.py
lib/server/masterd.py