Add Remote.is_online property

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
This commit is contained in:
Zack Cerza 2014-02-10 13:15:09 -06:00
parent a2a5aed49f
commit 1c71558e53

View File

@ -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):
"""