]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
orchestra/remote.py: check underlying Transport also
authorKefu Chai <kchai@redhat.com>
Wed, 25 Mar 2020 10:09:15 +0000 (18:09 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 25 Mar 2020 10:09:16 +0000 (18:09 +0800)
if the underlying Transport object is not available, consider this
remote is not online yet.

Signed-off-by: Kefu Chai <kchai@redhat.com>
teuthology/orchestra/remote.py

index 721d809ce0972e30b7746570fbcf03059bf30741..79df250cd84dd39e3be70cb2547eac2dc418813f 100644 (file)
@@ -159,6 +159,8 @@ class Remote(object):
     def is_online(self):
         if self.ssh is None:
             return False
+        if self.ssh.get_transport() is None:
+            return False
         try:
             self.run(args="true")
         except Exception: