]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Use Remote.hostname in logs
authorZack Cerza <zack@cerza.org>
Wed, 7 May 2014 17:29:12 +0000 (12:29 -0500)
committerZack Cerza <zack@cerza.org>
Sat, 10 May 2014 14:10:22 +0000 (09:10 -0500)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/orchestra/remote.py
teuthology/orchestra/test/test_remote.py

index 5cf1e35c94b98b07fc881420f3d041e038c53490..cc3d8af84e5f2b1b4b87c2bd0c806a64cb190f29 100644 (file)
@@ -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
 
index 13e3c31043907ca9179ac3a8282bac7c054011c3..25f14fc84685ccb02f367d7599c511727ff82561 100644 (file)
@@ -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