From 1c71558e539382ca67ccea1f8fec2bb8d6023808 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 10 Feb 2014 13:15:09 -0600 Subject: [PATCH] Add Remote.is_online property Signed-off-by: Zack Cerza --- teuthology/orchestra/remote.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/teuthology/orchestra/remote.py b/teuthology/orchestra/remote.py index bdee61d895b57..b50c1100adacf 100644 --- a/teuthology/orchestra/remote.py +++ b/teuthology/orchestra/remote.py @@ -48,6 +48,10 @@ class Remote(object): def hostname(self): return self.name.split('@')[1] + @property + def is_online(self): + return self.ssh.get_transport().is_active() + @property def system_type(self): """ -- 2.39.5