{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/beaker/pulls/comments/27930649","id":27930649,"diff_hunk":"@@ -62,10 +62,21 @@ def connect\n     def close\n       begin\n         @ssh.close if @ssh\n-      rescue\n+      rescue IOError => detail\n+        if detail.message == 'closed stream'\n+          @logger.warn 'Attemped ssh.close.  Caught IOError.close stream.  Destroying ssh instance.'\n+        else\n+          @logger.warn 'ssh.close threw unexpected IOError.  Shutting down, and re-raising error below'","path":"lib/beaker/ssh_connection.rb","position":9,"original_position":9,"commit_id":"cc8d5522e400b3e2e84baafbf2dcc508d08266b2","original_commit_id":"cc8d5522e400b3e2e84baafbf2dcc508d08266b2","user":{"login":"kevpl","id":8973629,"avatar_url":"https://avatars.githubusercontent.com/u/8973629?v=3","gravatar_id":"","url":"https://api.github.com/users/kevpl","html_url":"https://github.com/kevpl","followers_url":"https://api.github.com/users/kevpl/followers","following_url":"https://api.github.com/users/kevpl/following{/other_user}","gists_url":"https://api.github.com/users/kevpl/gists{/gist_id}","starred_url":"https://api.github.com/users/kevpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevpl/subscriptions","organizations_url":"https://api.github.com/users/kevpl/orgs","repos_url":"https://api.github.com/users/kevpl/repos","events_url":"https://api.github.com/users/kevpl/events{/privacy}","received_events_url":"https://api.github.com/users/kevpl/received_events","type":"User","site_admin":false},"body":"sure","created_at":"2015-04-07T23:18:33Z","updated_at":"2015-04-07T23:18:33Z","html_url":"https://github.com/puppetlabs/beaker/pull/782#discussion_r27930649","pull_request_url":"https://api.github.com/repos/puppetlabs/beaker/pulls/782","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/beaker/pulls/comments/27930649"},"html":{"href":"https://github.com/puppetlabs/beaker/pull/782#discussion_r27930649"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/beaker/pulls/782"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/beaker/pulls/782","id":32814773,"html_url":"https://github.com/puppetlabs/beaker/pull/782","diff_url":"https://github.com/puppetlabs/beaker/pull/782.diff","patch_url":"https://github.com/puppetlabs/beaker/pull/782.patch","issue_url":"https://api.github.com/repos/puppetlabs/beaker/issues/782","number":782,"state":"open","locked":false,"title":"(BKR-70) added error condition handling to SshConnection.close","user":{"login":"kevpl","id":8973629,"avatar_url":"https://avatars.githubusercontent.com/u/8973629?v=3","gravatar_id":"","url":"https://api.github.com/users/kevpl","html_url":"https://github.com/kevpl","followers_url":"https://api.github.com/users/kevpl/followers","following_url":"https://api.github.com/users/kevpl/following{/other_user}","gists_url":"https://api.github.com/users/kevpl/gists{/gist_id}","starred_url":"https://api.github.com/users/kevpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevpl/subscriptions","organizations_url":"https://api.github.com/users/kevpl/orgs","repos_url":"https://api.github.com/users/kevpl/repos","events_url":"https://api.github.com/users/kevpl/events{/privacy}","received_events_url":"https://api.github.com/users/kevpl/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-07T23:09:06Z","updated_at":"2015-04-07T23:18:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5f1c662afa5634a38d17e722cf560666b403d52","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/beaker/pulls/782/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/beaker/pulls/782/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/beaker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/beaker/issues/782/comments","statuses_url":"https://api.github.com/repos/puppetlabs/beaker/statuses/cc8d5522e400b3e2e84baafbf2dcc508d08266b2","head":{"label":"kevpl:bkr70_ssh_closeerror","ref":"bkr70_ssh_closeerror","sha":"cc8d5522e400b3e2e84baafbf2dcc508d08266b2","user":{"login":"kevpl","id":8973629,"avatar_url":"https://avatars.githubusercontent.com/u/8973629?v=3","gravatar_id":"","url":"https://api.github.com/users/kevpl","html_url":"https://github.com/kevpl","followers_url":"https://api.github.com/users/kevpl/followers","following_url":"https://api.github.com/users/kevpl/following{/other_user}","gists_url":"https://api.github.com/users/kevpl/gists{/gist_id}","starred_url":"https://api.github.com/users/kevpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevpl/subscriptions","organizations_url":"https://api.github.com/users/kevpl/orgs","repos_url":"https://api.github.com/users/kevpl/repos","events_url":"https://api.github.com/users/kevpl/events{/privacy}","received_events_url":"https://api.github.com/users/kevpl/received_events","type":"User","site_admin":false},"repo":{"id":24955690,"name":"beaker","full_name":"kevpl/beaker","owner":{"login":"kevpl","id":8973629,"avatar_url":"https://avatars.githubusercontent.com/u/8973629?v=3","gravatar_id":"","url":"https://api.github.com/users/kevpl","html_url":"https://github.com/kevpl","followers_url":"https://api.github.com/users/kevpl/followers","following_url":"https://api.github.com/users/kevpl/following{/other_user}","gists_url":"https://api.github.com/users/kevpl/gists{/gist_id}","starred_url":"https://api.github.com/users/kevpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevpl/subscriptions","organizations_url":"https://api.github.com/users/kevpl/orgs","repos_url":"https://api.github.com/users/kevpl/repos","events_url":"https://api.github.com/users/kevpl/events{/privacy}","received_events_url":"https://api.github.com/users/kevpl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevpl/beaker","description":"Puppet acceptance testing harness","fork":true,"url":"https://api.github.com/repos/kevpl/beaker","forks_url":"https://api.github.com/repos/kevpl/beaker/forks","keys_url":"https://api.github.com/repos/kevpl/beaker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevpl/beaker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevpl/beaker/teams","hooks_url":"https://api.github.com/repos/kevpl/beaker/hooks","issue_events_url":"https://api.github.com/repos/kevpl/beaker/issues/events{/number}","events_url":"https://api.github.com/repos/kevpl/beaker/events","assignees_url":"https://api.github.com/repos/kevpl/beaker/assignees{/user}","branches_url":"https://api.github.com/repos/kevpl/beaker/branches{/branch}","tags_url":"https://api.github.com/repos/kevpl/beaker/tags","blobs_url":"https://api.github.com/repos/kevpl/beaker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevpl/beaker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevpl/beaker/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevpl/beaker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevpl/beaker/statuses/{sha}","languages_url":"https://api.github.com/repos/kevpl/beaker/languages","stargazers_url":"https://api.github.com/repos/kevpl/beaker/stargazers","contributors_url":"https://api.github.com/repos/kevpl/beaker/contributors","subscribers_url":"https://api.github.com/repos/kevpl/beaker/subscribers","subscription_url":"https://api.github.com/repos/kevpl/beaker/subscription","commits_url":"https://api.github.com/repos/kevpl/beaker/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevpl/beaker/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevpl/beaker/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevpl/beaker/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevpl/beaker/contents/{+path}","compare_url":"https://api.github.com/repos/kevpl/beaker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevpl/beaker/merges","archive_url":"https://api.github.com/repos/kevpl/beaker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevpl/beaker/downloads","issues_url":"https://api.github.com/repos/kevpl/beaker/issues{/number}","pulls_url":"https://api.github.com/repos/kevpl/beaker/pulls{/number}","milestones_url":"https://api.github.com/repos/kevpl/beaker/milestones{/number}","notifications_url":"https://api.github.com/repos/kevpl/beaker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevpl/beaker/labels{/name}","releases_url":"https://api.github.com/repos/kevpl/beaker/releases{/id}","created_at":"2014-10-08T18:55:37Z","updated_at":"2014-10-08T17:17:52Z","pushed_at":"2015-04-07T23:08:25Z","git_url":"git://github.com/kevpl/beaker.git","ssh_url":"git@github.com:kevpl/beaker.git","clone_url":"https://github.com/kevpl/beaker.git","svn_url":"https://github.com/kevpl/beaker","homepage":null,"size":10054,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"puppetlabs:master","ref":"master","sha":"959952a7cddfbef012d803c06fafbd610436c138","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":12164675,"name":"beaker","full_name":"puppetlabs/beaker","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/beaker","description":"Puppet Acceptance Testing Harness","fork":false,"url":"https://api.github.com/repos/puppetlabs/beaker","forks_url":"https://api.github.com/repos/puppetlabs/beaker/forks","keys_url":"https://api.github.com/repos/puppetlabs/beaker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/beaker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/beaker/teams","hooks_url":"https://api.github.com/repos/puppetlabs/beaker/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/beaker/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/beaker/events","assignees_url":"https://api.github.com/repos/puppetlabs/beaker/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/beaker/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/beaker/tags","blobs_url":"https://api.github.com/repos/puppetlabs/beaker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/beaker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/beaker/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/beaker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/beaker/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/beaker/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/beaker/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/beaker/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/beaker/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/beaker/subscription","commits_url":"https://api.github.com/repos/puppetlabs/beaker/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/beaker/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/beaker/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/beaker/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/beaker/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/beaker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/beaker/merges","archive_url":"https://api.github.com/repos/puppetlabs/beaker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/beaker/downloads","issues_url":"https://api.github.com/repos/puppetlabs/beaker/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/beaker/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/beaker/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/beaker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/beaker/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/beaker/releases{/id}","created_at":"2013-08-16T17:57:03Z","updated_at":"2015-04-07T21:20:50Z","pushed_at":"2015-04-07T23:09:06Z","git_url":"git://github.com/puppetlabs/beaker.git","ssh_url":"git@github.com:puppetlabs/beaker.git","clone_url":"https://github.com/puppetlabs/beaker.git","svn_url":"https://github.com/puppetlabs/beaker","homepage":"https://groups.google.com/forum/#!forum/puppet-beaker","size":16439,"stargazers_count":159,"watchers_count":159,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":125,"mirror_url":null,"open_issues_count":12,"forks":125,"open_issues":12,"watchers":159,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/beaker/pulls/782"},"html":{"href":"https://github.com/puppetlabs/beaker/pull/782"},"issue":{"href":"https://api.github.com/repos/puppetlabs/beaker/issues/782"},"comments":{"href":"https://api.github.com/repos/puppetlabs/beaker/issues/782/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/beaker/pulls/782/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/beaker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/beaker/pulls/782/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/beaker/statuses/cc8d5522e400b3e2e84baafbf2dcc508d08266b2"}}}}