]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Add RemoteProcess.__repr__()
authorZack Cerza <zack@cerza.org>
Fri, 30 May 2014 21:36:03 +0000 (16:36 -0500)
committerZack Cerza <zack@cerza.org>
Fri, 30 May 2014 21:36:03 +0000 (16:36 -0500)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/orchestra/run.py

index fd03a2d28d3692402fa57dcc7c375369d9ee6615..b70244759f719ca00a665e4683d50fb005f58c9f 100644 (file)
@@ -125,6 +125,15 @@ class RemoteProcess(object):
             return self.returncode
         return None
 
+    def __repr__(self):
+        return '{classname}(client={client!r}, args={args!r}, check_status={check}, hostname={name!r})'.format(  # noqa
+            classname=self.__class__.__name__,
+            client=self.client,
+            args=self.args,
+            check=self.check_status,
+            name=self.hostname,
+            )
+
 
 class Raw(object):