{"action":"created","comment":{"url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/pulls/comments/204188118","pull_request_review_id":139233386,"id":204188118,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDE4ODExOA==","diff_hunk":"@@ -271,19 +267,9 @@ def get_credentials(self):\n             class: Read-only credentials.\n \n         \"\"\"\n-        if self.cache_token:\n-            access_token = self.access_token_ or \\\n-                           self._resolve_credential('access_token')\n-        else:\n-            access_token = self.access_token_\n-        client_id = self.client_id_ or self._resolve_credential(\n-            'client_id')\n-        client_secret = self.client_secret_ or self._resolve_credential(\n-            'client_secret')\n-        refresh_token = self.refresh_token_ or self._resolve_credential(\n-            'refresh_token')\n         return ReadOnlyCredentials(\n-            access_token, client_id, client_secret, refresh_token\n+            self.access_token, self.client_id, self.client_secret,","path":"pancloud/credentials.py","position":50,"original_position":50,"commit_id":"644317eb330b3ceea1df11a857e49bffd196fba9","original_commit_id":"644317eb330b3ceea1df11a857e49bffd196fba9","user":{"login":"kevinsteves","id":5354968,"node_id":"MDQ6VXNlcjUzNTQ5Njg=","avatar_url":"https://avatars0.githubusercontent.com/u/5354968?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinsteves","html_url":"https://github.com/kevinsteves","followers_url":"https://api.github.com/users/kevinsteves/followers","following_url":"https://api.github.com/users/kevinsteves/following{/other_user}","gists_url":"https://api.github.com/users/kevinsteves/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsteves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsteves/subscriptions","organizations_url":"https://api.github.com/users/kevinsteves/orgs","repos_url":"https://api.github.com/users/kevinsteves/repos","events_url":"https://api.github.com/users/kevinsteves/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsteves/received_events","type":"User","site_admin":false},"body":"also see line 300.  may be missing something.","created_at":"2018-07-20T23:05:49Z","updated_at":"2018-07-20T23:05:49Z","html_url":"https://github.com/PaloAltoNetworks/pancloud/pull/74#discussion_r204188118","pull_request_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/pulls/74","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/PaloAltoNetworks/pancloud/pulls/comments/204188118"},"html":{"href":"https://github.com/PaloAltoNetworks/pancloud/pull/74#discussion_r204188118"},"pull_request":{"href":"https://api.github.com/repos/PaloAltoNetworks/pancloud/pulls/74"}},"in_reply_to_id":204187876},"pull_request":{"url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/pulls/74","id":202970760,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyOTcwNzYw","html_url":"https://github.com/PaloAltoNetworks/pancloud/pull/74","diff_url":"https://github.com/PaloAltoNetworks/pancloud/pull/74.diff","patch_url":"https://github.com/PaloAltoNetworks/pancloud/pull/74.patch","issue_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/issues/74","number":74,"state":"open","locked":false,"title":"Handle errors before updating credentials #73","user":{"login":"sserrata","id":9343811,"node_id":"MDQ6VXNlcjkzNDM4MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/9343811?v=4","gravatar_id":"","url":"https://api.github.com/users/sserrata","html_url":"https://github.com/sserrata","followers_url":"https://api.github.com/users/sserrata/followers","following_url":"https://api.github.com/users/sserrata/following{/other_user}","gists_url":"https://api.github.com/users/sserrata/gists{/gist_id}","starred_url":"https://api.github.com/users/sserrata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sserrata/subscriptions","organizations_url":"https://api.github.com/users/sserrata/orgs","repos_url":"https://api.github.com/users/sserrata/repos","events_url":"https://api.github.com/users/sserrata/events{/privacy}","received_events_url":"https://api.github.com/users/sserrata/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-20T22:35:14Z","updated_at":"2018-07-20T23:05:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fec5889aae52fa20ce9686e4954d42c4cf78ee5a","assignee":{"login":"sserrata","id":9343811,"node_id":"MDQ6VXNlcjkzNDM4MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/9343811?v=4","gravatar_id":"","url":"https://api.github.com/users/sserrata","html_url":"https://github.com/sserrata","followers_url":"https://api.github.com/users/sserrata/followers","following_url":"https://api.github.com/users/sserrata/following{/other_user}","gists_url":"https://api.github.com/users/sserrata/gists{/gist_id}","starred_url":"https://api.github.com/users/sserrata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sserrata/subscriptions","organizations_url":"https://api.github.com/users/sserrata/orgs","repos_url":"https://api.github.com/users/sserrata/repos","events_url":"https://api.github.com/users/sserrata/events{/privacy}","received_events_url":"https://api.github.com/users/sserrata/received_events","type":"User","site_admin":false},"assignees":[{"login":"sserrata","id":9343811,"node_id":"MDQ6VXNlcjkzNDM4MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/9343811?v=4","gravatar_id":"","url":"https://api.github.com/users/sserrata","html_url":"https://github.com/sserrata","followers_url":"https://api.github.com/users/sserrata/followers","following_url":"https://api.github.com/users/sserrata/following{/other_user}","gists_url":"https://api.github.com/users/sserrata/gists{/gist_id}","starred_url":"https://api.github.com/users/sserrata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sserrata/subscriptions","organizations_url":"https://api.github.com/users/sserrata/orgs","repos_url":"https://api.github.com/users/sserrata/repos","events_url":"https://api.github.com/users/sserrata/events{/privacy}","received_events_url":"https://api.github.com/users/sserrata/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":869796666,"node_id":"MDU6TGFiZWw4Njk3OTY2NjY=","url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/labels/bug","name":"bug","color":"d73a4a","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/pulls/74/commits","review_comments_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/pulls/74/comments","review_comment_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/issues/74/comments","statuses_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/statuses/644317eb330b3ceea1df11a857e49bffd196fba9","head":{"label":"sserrata:creds-patch","ref":"creds-patch","sha":"644317eb330b3ceea1df11a857e49bffd196fba9","user":{"login":"sserrata","id":9343811,"node_id":"MDQ6VXNlcjkzNDM4MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/9343811?v=4","gravatar_id":"","url":"https://api.github.com/users/sserrata","html_url":"https://github.com/sserrata","followers_url":"https://api.github.com/users/sserrata/followers","following_url":"https://api.github.com/users/sserrata/following{/other_user}","gists_url":"https://api.github.com/users/sserrata/gists{/gist_id}","starred_url":"https://api.github.com/users/sserrata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sserrata/subscriptions","organizations_url":"https://api.github.com/users/sserrata/orgs","repos_url":"https://api.github.com/users/sserrata/repos","events_url":"https://api.github.com/users/sserrata/events{/privacy}","received_events_url":"https://api.github.com/users/sserrata/received_events","type":"User","site_admin":false},"repo":{"id":127298081,"node_id":"MDEwOlJlcG9zaXRvcnkxMjcyOTgwODE=","name":"pancloud","full_name":"sserrata/pancloud","owner":{"login":"sserrata","id":9343811,"node_id":"MDQ6VXNlcjkzNDM4MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/9343811?v=4","gravatar_id":"","url":"https://api.github.com/users/sserrata","html_url":"https://github.com/sserrata","followers_url":"https://api.github.com/users/sserrata/followers","following_url":"https://api.github.com/users/sserrata/following{/other_user}","gists_url":"https://api.github.com/users/sserrata/gists{/gist_id}","starred_url":"https://api.github.com/users/sserrata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sserrata/subscriptions","organizations_url":"https://api.github.com/users/sserrata/orgs","repos_url":"https://api.github.com/users/sserrata/repos","events_url":"https://api.github.com/users/sserrata/events{/privacy}","received_events_url":"https://api.github.com/users/sserrata/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sserrata/pancloud","description":"Python idiomatic SDK for the Palo Alto Networks Application Framework.","fork":true,"url":"https://api.github.com/repos/sserrata/pancloud","forks_url":"https://api.github.com/repos/sserrata/pancloud/forks","keys_url":"https://api.github.com/repos/sserrata/pancloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sserrata/pancloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sserrata/pancloud/teams","hooks_url":"https://api.github.com/repos/sserrata/pancloud/hooks","issue_events_url":"https://api.github.com/repos/sserrata/pancloud/issues/events{/number}","events_url":"https://api.github.com/repos/sserrata/pancloud/events","assignees_url":"https://api.github.com/repos/sserrata/pancloud/assignees{/user}","branches_url":"https://api.github.com/repos/sserrata/pancloud/branches{/branch}","tags_url":"https://api.github.com/repos/sserrata/pancloud/tags","blobs_url":"https://api.github.com/repos/sserrata/pancloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sserrata/pancloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sserrata/pancloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/sserrata/pancloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sserrata/pancloud/statuses/{sha}","languages_url":"https://api.github.com/repos/sserrata/pancloud/languages","stargazers_url":"https://api.github.com/repos/sserrata/pancloud/stargazers","contributors_url":"https://api.github.com/repos/sserrata/pancloud/contributors","subscribers_url":"https://api.github.com/repos/sserrata/pancloud/subscribers","subscription_url":"https://api.github.com/repos/sserrata/pancloud/subscription","commits_url":"https://api.github.com/repos/sserrata/pancloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/sserrata/pancloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/sserrata/pancloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/sserrata/pancloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/sserrata/pancloud/contents/{+path}","compare_url":"https://api.github.com/repos/sserrata/pancloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sserrata/pancloud/merges","archive_url":"https://api.github.com/repos/sserrata/pancloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sserrata/pancloud/downloads","issues_url":"https://api.github.com/repos/sserrata/pancloud/issues{/number}","pulls_url":"https://api.github.com/repos/sserrata/pancloud/pulls{/number}","milestones_url":"https://api.github.com/repos/sserrata/pancloud/milestones{/number}","notifications_url":"https://api.github.com/repos/sserrata/pancloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sserrata/pancloud/labels{/name}","releases_url":"https://api.github.com/repos/sserrata/pancloud/releases{/id}","deployments_url":"https://api.github.com/repos/sserrata/pancloud/deployments","created_at":"2018-03-29T13:47:44Z","updated_at":"2018-07-20T22:26:47Z","pushed_at":"2018-07-20T22:30:46Z","git_url":"git://github.com/sserrata/pancloud.git","ssh_url":"git@github.com:sserrata/pancloud.git","clone_url":"https://github.com/sserrata/pancloud.git","svn_url":"https://github.com/sserrata/pancloud","homepage":null,"size":438,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PaloAltoNetworks:master","ref":"master","sha":"df3c8a64572c41359a479da24fde844a2b1bf36e","user":{"login":"PaloAltoNetworks","id":4855743,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NTU3NDM=","avatar_url":"https://avatars2.githubusercontent.com/u/4855743?v=4","gravatar_id":"","url":"https://api.github.com/users/PaloAltoNetworks","html_url":"https://github.com/PaloAltoNetworks","followers_url":"https://api.github.com/users/PaloAltoNetworks/followers","following_url":"https://api.github.com/users/PaloAltoNetworks/following{/other_user}","gists_url":"https://api.github.com/users/PaloAltoNetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/PaloAltoNetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaloAltoNetworks/subscriptions","organizations_url":"https://api.github.com/users/PaloAltoNetworks/orgs","repos_url":"https://api.github.com/users/PaloAltoNetworks/repos","events_url":"https://api.github.com/users/PaloAltoNetworks/events{/privacy}","received_events_url":"https://api.github.com/users/PaloAltoNetworks/received_events","type":"Organization","site_admin":false},"repo":{"id":125560002,"node_id":"MDEwOlJlcG9zaXRvcnkxMjU1NjAwMDI=","name":"pancloud","full_name":"PaloAltoNetworks/pancloud","owner":{"login":"PaloAltoNetworks","id":4855743,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NTU3NDM=","avatar_url":"https://avatars2.githubusercontent.com/u/4855743?v=4","gravatar_id":"","url":"https://api.github.com/users/PaloAltoNetworks","html_url":"https://github.com/PaloAltoNetworks","followers_url":"https://api.github.com/users/PaloAltoNetworks/followers","following_url":"https://api.github.com/users/PaloAltoNetworks/following{/other_user}","gists_url":"https://api.github.com/users/PaloAltoNetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/PaloAltoNetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaloAltoNetworks/subscriptions","organizations_url":"https://api.github.com/users/PaloAltoNetworks/orgs","repos_url":"https://api.github.com/users/PaloAltoNetworks/repos","events_url":"https://api.github.com/users/PaloAltoNetworks/events{/privacy}","received_events_url":"https://api.github.com/users/PaloAltoNetworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PaloAltoNetworks/pancloud","description":"Python idiomatic SDK for the Palo Alto Networks Application Framework.","fork":false,"url":"https://api.github.com/repos/PaloAltoNetworks/pancloud","forks_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/forks","keys_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/teams","hooks_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/hooks","issue_events_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/issues/events{/number}","events_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/events","assignees_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/assignees{/user}","branches_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/branches{/branch}","tags_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/tags","blobs_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/statuses/{sha}","languages_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/languages","stargazers_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/stargazers","contributors_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/contributors","subscribers_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/subscribers","subscription_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/subscription","commits_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/contents/{+path}","compare_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/merges","archive_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/downloads","issues_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/issues{/number}","pulls_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/pulls{/number}","milestones_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/milestones{/number}","notifications_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/labels{/name}","releases_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/releases{/id}","deployments_url":"https://api.github.com/repos/PaloAltoNetworks/pancloud/deployments","created_at":"2018-03-16T19:17:52Z","updated_at":"2018-07-20T22:23:25Z","pushed_at":"2018-07-20T22:35:15Z","git_url":"git://github.com/PaloAltoNetworks/pancloud.git","ssh_url":"git@github.com:PaloAltoNetworks/pancloud.git","clone_url":"https://github.com/PaloAltoNetworks/pancloud.git","svn_url":"https://github.com/PaloAltoNetworks/pancloud","homepage":null,"size":419,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":4,"open_issues":5,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PaloAltoNetworks/pancloud/pulls/74"},"html":{"href":"https://github.com/PaloAltoNetworks/pancloud/pull/74"},"issue":{"href":"https://api.github.com/repos/PaloAltoNetworks/pancloud/issues/74"},"comments":{"href":"https://api.github.com/repos/PaloAltoNetworks/pancloud/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/PaloAltoNetworks/pancloud/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/PaloAltoNetworks/pancloud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaloAltoNetworks/pancloud/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/PaloAltoNetworks/pancloud/statuses/644317eb330b3ceea1df11a857e49bffd196fba9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kevinsteves"}}