From: Zack Cerza Date: Mon, 10 Feb 2014 16:42:25 +0000 (-0600) Subject: Add Remote.hostname property X-Git-Tag: 1.1.0~1646^2~32 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a2a5aed49f63e139d57e74305201748ce3d26fcb;p=teuthology.git Add Remote.hostname property Signed-off-by: Zack Cerza --- diff --git a/teuthology/orchestra/remote.py b/teuthology/orchestra/remote.py index 7374f252..bdee61d8 100644 --- a/teuthology/orchestra/remote.py +++ b/teuthology/orchestra/remote.py @@ -44,6 +44,10 @@ class Remote(object): name = self.name return name + @property + def hostname(self): + return self.name.split('@')[1] + @property def system_type(self): """