{"action":"created","comment":{"url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/comments/43149932","id":43149932,"diff_hunk":"@@ -76,6 +76,14 @@ def create_client(args):\n                                   os.environ.get('LAVA2_API_URL'),\n                                   os.environ.get('LAVA_API_URL')),\n             verify_ssl=args.verify_ssl,\n+            timeout=first_exists(args.request_timeout,\n+                                 os.environ.get('LAVA_API_TIMEOUT')),","path":"lavaclient/cli.py","position":5,"original_position":5,"commit_id":"4cb4d77b347a8788d712c336b44d172b4d8e1a56","original_commit_id":"4cb4d77b347a8788d712c336b44d172b4d8e1a56","user":{"login":"jimbobhickville","id":230385,"avatar_url":"https://avatars.githubusercontent.com/u/230385?v=3","gravatar_id":"","url":"https://api.github.com/users/jimbobhickville","html_url":"https://github.com/jimbobhickville","followers_url":"https://api.github.com/users/jimbobhickville/followers","following_url":"https://api.github.com/users/jimbobhickville/following{/other_user}","gists_url":"https://api.github.com/users/jimbobhickville/gists{/gist_id}","starred_url":"https://api.github.com/users/jimbobhickville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimbobhickville/subscriptions","organizations_url":"https://api.github.com/users/jimbobhickville/orgs","repos_url":"https://api.github.com/users/jimbobhickville/repos","events_url":"https://api.github.com/users/jimbobhickville/events{/privacy}","received_events_url":"https://api.github.com/users/jimbobhickville/received_events","type":"User","site_admin":false},"body":"Fair enough.","created_at":"2015-10-27T16:49:17Z","updated_at":"2015-10-27T16:49:17Z","html_url":"https://github.com/rackerlabs/python-lavaclient/pull/36#discussion_r43149932","pull_request_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/comments/43149932"},"html":{"href":"https://github.com/rackerlabs/python-lavaclient/pull/36#discussion_r43149932"},"pull_request":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/36","id":48887578,"html_url":"https://github.com/rackerlabs/python-lavaclient/pull/36","diff_url":"https://github.com/rackerlabs/python-lavaclient/pull/36.diff","patch_url":"https://github.com/rackerlabs/python-lavaclient/pull/36.patch","issue_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues/36","number":36,"state":"open","locked":false,"title":"Add automatic retries on network errors and 503 responses","user":{"login":"jimbobhickville","id":230385,"avatar_url":"https://avatars.githubusercontent.com/u/230385?v=3","gravatar_id":"","url":"https://api.github.com/users/jimbobhickville","html_url":"https://github.com/jimbobhickville","followers_url":"https://api.github.com/users/jimbobhickville/followers","following_url":"https://api.github.com/users/jimbobhickville/following{/other_user}","gists_url":"https://api.github.com/users/jimbobhickville/gists{/gist_id}","starred_url":"https://api.github.com/users/jimbobhickville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimbobhickville/subscriptions","organizations_url":"https://api.github.com/users/jimbobhickville/orgs","repos_url":"https://api.github.com/users/jimbobhickville/repos","events_url":"https://api.github.com/users/jimbobhickville/events{/privacy}","received_events_url":"https://api.github.com/users/jimbobhickville/received_events","type":"User","site_admin":false},"body":"I wasn't able to properly mock the guts of urllib3 in such\r\na way as to create unit tests for the retries, but I did\r\nmanual testing and it worked as expected.","created_at":"2015-10-27T15:34:52Z","updated_at":"2015-10-27T16:49:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0389ee88a7b1a05d59c90d68b938d961d04ba95d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/36/commits","review_comments_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/36/comments","review_comment_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues/36/comments","statuses_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/statuses/4cb4d77b347a8788d712c336b44d172b4d8e1a56","head":{"label":"jimbobhickville:auto-retry-503s","ref":"auto-retry-503s","sha":"4cb4d77b347a8788d712c336b44d172b4d8e1a56","user":{"login":"jimbobhickville","id":230385,"avatar_url":"https://avatars.githubusercontent.com/u/230385?v=3","gravatar_id":"","url":"https://api.github.com/users/jimbobhickville","html_url":"https://github.com/jimbobhickville","followers_url":"https://api.github.com/users/jimbobhickville/followers","following_url":"https://api.github.com/users/jimbobhickville/following{/other_user}","gists_url":"https://api.github.com/users/jimbobhickville/gists{/gist_id}","starred_url":"https://api.github.com/users/jimbobhickville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimbobhickville/subscriptions","organizations_url":"https://api.github.com/users/jimbobhickville/orgs","repos_url":"https://api.github.com/users/jimbobhickville/repos","events_url":"https://api.github.com/users/jimbobhickville/events{/privacy}","received_events_url":"https://api.github.com/users/jimbobhickville/received_events","type":"User","site_admin":false},"repo":{"id":38007277,"name":"python-lavaclient","full_name":"jimbobhickville/python-lavaclient","owner":{"login":"jimbobhickville","id":230385,"avatar_url":"https://avatars.githubusercontent.com/u/230385?v=3","gravatar_id":"","url":"https://api.github.com/users/jimbobhickville","html_url":"https://github.com/jimbobhickville","followers_url":"https://api.github.com/users/jimbobhickville/followers","following_url":"https://api.github.com/users/jimbobhickville/following{/other_user}","gists_url":"https://api.github.com/users/jimbobhickville/gists{/gist_id}","starred_url":"https://api.github.com/users/jimbobhickville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimbobhickville/subscriptions","organizations_url":"https://api.github.com/users/jimbobhickville/orgs","repos_url":"https://api.github.com/users/jimbobhickville/repos","events_url":"https://api.github.com/users/jimbobhickville/events{/privacy}","received_events_url":"https://api.github.com/users/jimbobhickville/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jimbobhickville/python-lavaclient","description":"Command line client for Cloud Big Data","fork":true,"url":"https://api.github.com/repos/jimbobhickville/python-lavaclient","forks_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/forks","keys_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/teams","hooks_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/hooks","issue_events_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/issues/events{/number}","events_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/events","assignees_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/assignees{/user}","branches_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/branches{/branch}","tags_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/tags","blobs_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/statuses/{sha}","languages_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/languages","stargazers_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/stargazers","contributors_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/contributors","subscribers_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/subscribers","subscription_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/subscription","commits_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/contents/{+path}","compare_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/merges","archive_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/downloads","issues_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/issues{/number}","pulls_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/pulls{/number}","milestones_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/milestones{/number}","notifications_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/labels{/name}","releases_url":"https://api.github.com/repos/jimbobhickville/python-lavaclient/releases{/id}","created_at":"2015-06-24T19:48:03Z","updated_at":"2015-06-24T19:48:04Z","pushed_at":"2015-10-27T15:34:28Z","git_url":"git://github.com/jimbobhickville/python-lavaclient.git","ssh_url":"git@github.com:jimbobhickville/python-lavaclient.git","clone_url":"https://github.com/jimbobhickville/python-lavaclient.git","svn_url":"https://github.com/jimbobhickville/python-lavaclient","homepage":null,"size":312,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"rackerlabs:master","ref":"master","sha":"805281b12fb842b25ab1cfbbe1633975859f91ac","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":35032950,"name":"python-lavaclient","full_name":"rackerlabs/python-lavaclient","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/python-lavaclient","description":"Command line client for Cloud Big Data","fork":false,"url":"https://api.github.com/repos/rackerlabs/python-lavaclient","forks_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/forks","keys_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/teams","hooks_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/events","assignees_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/tags","blobs_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/subscription","commits_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/merges","archive_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/downloads","issues_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/python-lavaclient/releases{/id}","created_at":"2015-05-04T12:16:35Z","updated_at":"2015-06-29T08:56:14Z","pushed_at":"2015-10-27T15:34:52Z","git_url":"git://github.com/rackerlabs/python-lavaclient.git","ssh_url":"git@github.com:rackerlabs/python-lavaclient.git","clone_url":"https://github.com/rackerlabs/python-lavaclient.git","svn_url":"https://github.com/rackerlabs/python-lavaclient","homepage":null,"size":572,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/36"},"html":{"href":"https://github.com/rackerlabs/python-lavaclient/pull/36"},"issue":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues/36"},"comments":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/rackerlabs/python-lavaclient/statuses/4cb4d77b347a8788d712c336b44d172b4d8e1a56"}}}}