From: John Spray Date: Tue, 16 Sep 2014 13:08:41 +0000 (+0100) Subject: orchestra: fix ConnectionLostError path in wait() X-Git-Tag: 1.1.0~1164^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F329%2Fhead;p=teuthology.git orchestra: fix ConnectionLostError path in wait() Sometimes it would generate AttributeError instead when it tried to call is_active() on None. Signed-off-by: John Spray --- diff --git a/teuthology/orchestra/run.py b/teuthology/orchestra/run.py index b70244759..b64baebba 100644 --- a/teuthology/orchestra/run.py +++ b/teuthology/orchestra/run.py @@ -90,7 +90,7 @@ class RemoteProcess(object): # command either died due to a signal, or the connection # was lost transport = self.client.get_transport() - if not transport.is_active(): + if transport is None or not transport.is_active(): # look like we lost the connection raise ConnectionLostError(command=self.command)