]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
orchestra: fix ConnectionLostError path in wait() 329/head 331/head
authorJohn Spray <jspray@redhat.com>
Tue, 16 Sep 2014 13:08:41 +0000 (14:08 +0100)
committerJohn Spray <jspray@redhat.com>
Tue, 16 Sep 2014 14:09:32 +0000 (15:09 +0100)
Sometimes it would generate AttributeError instead
when it tried to call is_active() on None.

Signed-off-by: John Spray <john.spray@redhat.com>
teuthology/orchestra/run.py

index b70244759f719ca00a665e4683d50fb005f58c9f..b64baebba0b833bdfac78b320347fdcfb5d020f5 100644 (file)
@@ -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)