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>
Fri, 3 Jul 2015 07:55:53 +0000 (09:55 +0200)
commitfa255d206e2c8a0acaf52f12c238b396ee1fe039
treeb2fcd6f201b8407ae7a846054e747ab39492facd
parent49e3eb9bb4eb83f0cceb76aa9f738aa2d201bc4d
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>

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