From: Zack Cerza Date: Wed, 7 May 2014 17:29:12 +0000 (-0500) Subject: Use Remote.hostname in logs X-Git-Tag: 1.1.0~1475 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3adb7d4629fc5136f819bfb90bfa5e7bf4dd50a7;p=teuthology.git Use Remote.hostname in logs Signed-off-by: Zack Cerza --- diff --git a/teuthology/orchestra/remote.py b/teuthology/orchestra/remote.py index 5cf1e35c9..cc3d8af84 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 13e3c3104..25f14fc84 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