From: Zack Cerza Date: Fri, 30 May 2014 21:36:03 +0000 (-0500) Subject: Add RemoteProcess.__repr__() X-Git-Tag: 1.1.0~1420^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F265%2Fhead;p=teuthology.git Add RemoteProcess.__repr__() Signed-off-by: Zack Cerza --- diff --git a/teuthology/orchestra/run.py b/teuthology/orchestra/run.py index fd03a2d28..b70244759 100644 --- a/teuthology/orchestra/run.py +++ b/teuthology/orchestra/run.py @@ -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):