)]}'
{"tempest/lib/common/ssh.py":[{"author":{"_account_id":5689,"name":"Masayuki Igawa","email":"masayuki@igawa.io","username":"igawa"},"change_message_id":"0f9a5eb9f660f5fc4fb5245d1dea10c93ee6fda5","unresolved":false,"context_lines":[{"line_number":196,"context_line":""},{"line_number":197,"context_line":"            exit_status \u003d channel.recv_exit_status()"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"        ssh.close()"},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"        if 0 !\u003d exit_status:"},{"line_number":202,"context_line":"            raise exceptions.SSHExecCommandFailed("}],"source_content_type":"text/x-python","patch_set":1,"id":"3fa7e38b_e3c8b021","line":199,"updated":"2019-12-12 08:36:31.000000000","message":"Can we use a \"with\" statement for this?","commit_id":"690bae27c8df1a9c04ae0c0555e30db50c27c691"},{"author":{"_account_id":5803,"name":"Attila Fazekas","email":"afazekas@redhat.com","username":"afazekas"},"change_message_id":"c8a2da781e66d0cf1000bd42b082fae63ca67c40","unresolved":false,"context_lines":[{"line_number":196,"context_line":""},{"line_number":197,"context_line":"            exit_status \u003d channel.recv_exit_status()"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"        ssh.close()"},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"        if 0 !\u003d exit_status:"},{"line_number":202,"context_line":"            raise exceptions.SSHExecCommandFailed("}],"source_content_type":"text/x-python","patch_set":1,"id":"3fa7e38b_3b8cf933","line":199,"in_reply_to":"3fa7e38b_65af56e0","updated":"2020-01-02 15:43:44.000000000","message":"https://docs.python.org/3/library/contextlib.html#contextlib.closing","commit_id":"690bae27c8df1a9c04ae0c0555e30db50c27c691"},{"author":{"_account_id":22873,"name":"Martin Kopec","email":"mkopec@redhat.com","username":"mkopec"},"change_message_id":"a8120c42331a543b2646b4849d40e9dd1ca3b497","unresolved":false,"context_lines":[{"line_number":196,"context_line":""},{"line_number":197,"context_line":"            exit_status \u003d channel.recv_exit_status()"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"        ssh.close()"},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"        if 0 !\u003d exit_status:"},{"line_number":202,"context_line":"            raise exceptions.SSHExecCommandFailed("}],"source_content_type":"text/x-python","patch_set":1,"id":"3fa7e38b_65af56e0","line":199,"in_reply_to":"3fa7e38b_e3c8b021","updated":"2019-12-23 12:01:51.000000000","message":"I\u0027m not sure if we can use \"with\" for ssh object. If I understand that correctly, the object needs to have an _exit_ and _enter_ methods to be able to use \"with\", I don\u0027t see such methods in paramiko.SSHClient object returned by _get_ssh_connection()","commit_id":"690bae27c8df1a9c04ae0c0555e30db50c27c691"}]}
