@@ -46,7 +46,7 @@ def __init__(self, host, cmd, channel, stdout, stderr, stdin,
4646 :param exit_code: Exit code of command
4747 :type exit_code: int or None
4848 :param exception: Exception from host if any
49- :type exception: Exception or None
49+ :type exception: :py:class:` Exception` or `` None``
5050 """
5151 dict .__init__ (self , (('host' , host ), ('cmd' , cmd ), ('channel' , channel ),
5252 ('stdout' , stdout ), ('stderr' , stderr ),
@@ -73,8 +73,10 @@ def update(self, update_dict):
7373
7474 def __repr__ (self ):
7575 return "{linesep}\t host={host}{linesep}" \
76+ "\t exit_code={exit_code}{linesep}" \
7677"\t cmd={cmd}{linesep}\t channel={channel}{linesep}" \
7778"\t stdout={stdout}{linesep}\t stderr={stderr}{linesep}\t stdin={stdin}{linesep}\
7879\t exception={exception}{linesep}" .format (
7980 host = self .host , cmd = self .cmd , channel = self .channel , stdout = self .stdout ,
80- stdin = self .stdin , stderr = self .stderr , exception = self .exception , linesep = linesep ,)
81+ stdin = self .stdin , stderr = self .stderr , exception = self .exception ,
82+ linesep = linesep , exit_code = self .exit_code )
0 commit comments