From 7035c17ec925700553188089216995e7db92a2f6 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 30 May 2014 16:36:03 -0500 Subject: [PATCH] Add RemoteProcess.__repr__() Signed-off-by: Zack Cerza --- teuthology/orchestra/run.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/teuthology/orchestra/run.py b/teuthology/orchestra/run.py index fd03a2d28d369..b70244759f719 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): -- 2.39.5