mirror of
https://github.com/ceph/ceph
synced 2024-12-27 05:53:20 +00:00
Add Remote.is_online property
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
This commit is contained in:
parent
a2a5aed49f
commit
1c71558e53
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user