Allow the Transport class to be used for non-master nodes
authorPetr Pudlak <pudlak@google.com>
Fri, 5 Jun 2015 12:13:48 +0000 (14:13 +0200)
committerPetr Pudlak <pudlak@google.com>
Mon, 8 Jun 2015 09:25:01 +0000 (11:25 +0200)
commitade70feb258a57ae0565395ba48ac2b3ef02b1c0
treed7a8b9aa2342b5939e4d59a4e13174697f5d8d5a
parentbd4045591601cb98436ca42f37127687a3a0c121
Allow the Transport class to be used for non-master nodes

If a communication failure occurred and the caller was not running on
the master node, Transport assumed that this itself was the cause of
the error condition.

However, for communication with the metadata daemon we need to support
non-master nodes as well.

Add a parameter that allows to use the class on non-master nodes.

Signed-off-by: Petr Pudlak <pudlak@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
lib/rpc/transport.py