From 3adb7d4629fc5136f819bfb90bfa5e7bf4dd50a7 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 7 May 2014 12:29:12 -0500 Subject: [PATCH] Use Remote.hostname in logs Signed-off-by: Zack Cerza --- teuthology/orchestra/remote.py | 2 +- teuthology/orchestra/test/test_remote.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/orchestra/remote.py b/teuthology/orchestra/remote.py index 5cf1e35c94b98..cc3d8af84e5f2 100644 --- a/teuthology/orchestra/remote.py +++ b/teuthology/orchestra/remote.py @@ -106,7 +106,7 @@ class Remote(object): TODO refactor to move run.run here? """ - r = self._runner(client=self.ssh, name=self.name, **kwargs) + r = self._runner(client=self.ssh, name=self.hostname, **kwargs) r.remote = self return r diff --git a/teuthology/orchestra/test/test_remote.py b/teuthology/orchestra/test/test_remote.py index 13e3c31043907..25f14fc84685c 100644 --- a/teuthology/orchestra/test/test_remote.py +++ b/teuthology/orchestra/test/test_remote.py @@ -45,7 +45,7 @@ class TestRemote(object): client=fudge.inspector.arg.passes_test(lambda v: v is ssh), args=fudge.inspector.arg.passes_test(lambda v: v is args), foo=fudge.inspector.arg.passes_test(lambda v: v is foo), - name='jdoe@xyzzy.example.com' + name='xyzzy.example.com' ).returns(ret) r = remote.Remote(name='jdoe@xyzzy.example.com', ssh=ssh) # monkey patch ook ook -- 2.39.5