From 36fe6a58300496a6f6d6f5d5eeba6d1a92ca33fa Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 9 May 2014 11:25:02 -0500 Subject: [PATCH] Remote.hostname doesn't have to be a property Signed-off-by: Zack Cerza --- teuthology/orchestra/remote.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/teuthology/orchestra/remote.py b/teuthology/orchestra/remote.py index ce1a4bce18e..a9dd3595638 100644 --- a/teuthology/orchestra/remote.py +++ b/teuthology/orchestra/remote.py @@ -35,6 +35,7 @@ class Remote(object): def __init__(self, name, ssh=None, shortname=None, console=None, host_key=None, keep_alive=True): self.name = name + self.hostname = name.split('@')[-1] self._shortname = shortname self.host_key = host_key self.keep_alive = keep_alive @@ -70,10 +71,6 @@ class Remote(object): name = self.name return name - @property - def hostname(self): - return self.name.split('@')[1] - @property def is_online(self): if self.ssh is None: