From 24699f92c2dbb97882a2c6c4296e7cb36978bcc2 Mon Sep 17 00:00:00 2001 From: John Spray Date: Tue, 16 Sep 2014 14:08:41 +0100 Subject: [PATCH] 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 --- teuthology/orchestra/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3