Commit f828b17a authored by Petr Pudlak's avatar Petr Pudlak

Add the 'allow_non_master' option to the WConfd RPC client

While at it, fix the call to the AbstractStubClient to properly pass the
keyword arguments.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 706952c1
......@@ -49,13 +49,16 @@ class Client(cl.AbstractStubClient, stub.ClientRpcStub):
implements data serialization/deserialization.
"""
def __init__(self, timeouts=None, transport=Transport):
def __init__(self, timeouts=None, transport=Transport, allow_non_master=None):
"""Constructor for the Client class.
Arguments are the same as for L{AbstractClient}.
"""
cl.AbstractStubClient.__init__(self, timeouts, transport)
cl.AbstractStubClient.__init__(self,
timeouts=timeouts,
transport=transport,
allow_non_master=allow_non_master)
stub.ClientRpcStub.__init__(self)
retries = 12
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment