{"action":"created","comment":{"url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls/comments/156453662","pull_request_review_id":82930201,"id":156453662,"diff_hunk":"@@ -27,28 +27,42 @@ def status_functions(arguments, settings):\n \n         reactor_status = api.get_reactor_status(endpoint, credentials, settings)\n         reactor_details = reactor_status.get('details')\n-        status_msg = reactor_status['error']\n \n-        if reactor_name != reactor_details.get('name'):\n+        settings.reactors[reactor_name]['details'] = reactor_details\n+        settings.reactors[reactor_name]['online_status'] = reactor_status['online_status']\n+        settings.reactors[reactor_name]['error'] = reactor_status['error']\n+        settings.reactors[reactor_name]['status_code'] = reactor_status['status_code']\n+\n+        settings.save()  # store the latest details in settings\n+\n+        if reactor_details.get('name') and (reactor_name != reactor_details.get('name')):\n             full_reactor_name = \"{}({})\".format(reactor_name, reactor_details.get('name'))\n         else:\n             full_reactor_name = reactor_name\n         print('   {:<2}: {:30} {:10} {:40} {:10} {}'.format(index, full_reactor_name,\n                                                             reactor_status['online_status'],\n-                                                            reactor_details.get('id') or status_msg,\n+                                                            reactor_details.get('id') or \"not configured\",\n                                                             settings.get_auth_type(reactor_name),\n                                                             endpoint))\n-        if status_msg and reactor_status.get('id'):\n-            print('                                      ERROR: {}'.format(status_msg))\n \n-        response_code, accounts = api.get_connected_accounts(endpoint, credentials, settings)\n-        if response_code == 200:\n-            print('       -- AWS Account ------------------------- CloudZero Org ID -------- CloudZero EnvID -{}'.format(\n-                \"-\" * 50))","path":"cloudzerocli/features/status.py","position":30,"original_position":30,"commit_id":"cb76656c809f0a400ff954cb7c1d307484e54f14","original_commit_id":"cb76656c809f0a400ff954cb7c1d307484e54f14","user":{"login":"imcgaunn","id":8900989,"avatar_url":"https://avatars3.githubusercontent.com/u/8900989?v=4","gravatar_id":"","url":"https://api.github.com/users/imcgaunn","html_url":"https://github.com/imcgaunn","followers_url":"https://api.github.com/users/imcgaunn/followers","following_url":"https://api.github.com/users/imcgaunn/following{/other_user}","gists_url":"https://api.github.com/users/imcgaunn/gists{/gist_id}","starred_url":"https://api.github.com/users/imcgaunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imcgaunn/subscriptions","organizations_url":"https://api.github.com/users/imcgaunn/orgs","repos_url":"https://api.github.com/users/imcgaunn/repos","events_url":"https://api.github.com/users/imcgaunn/events{/privacy}","received_events_url":"https://api.github.com/users/imcgaunn/received_events","type":"User","site_admin":false},"body":"these magic numbers of repetitions should be labeled or justified.","created_at":"2017-12-12T18:26:14Z","updated_at":"2017-12-12T18:35:44Z","html_url":"https://github.com/Cloudzero/cloudzero-cli/pull/23#discussion_r156453662","pull_request_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls/23","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls/comments/156453662"},"html":{"href":"https://github.com/Cloudzero/cloudzero-cli/pull/23#discussion_r156453662"},"pull_request":{"href":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls/23","id":157415762,"html_url":"https://github.com/Cloudzero/cloudzero-cli/pull/23","diff_url":"https://github.com/Cloudzero/cloudzero-cli/pull/23.diff","patch_url":"https://github.com/Cloudzero/cloudzero-cli/pull/23.patch","issue_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/issues/23","number":23,"state":"open","locked":false,"title":"Feature/cli 17","user":{"login":"silvexis","id":609050,"avatar_url":"https://avatars0.githubusercontent.com/u/609050?v=4","gravatar_id":"","url":"https://api.github.com/users/silvexis","html_url":"https://github.com/silvexis","followers_url":"https://api.github.com/users/silvexis/followers","following_url":"https://api.github.com/users/silvexis/following{/other_user}","gists_url":"https://api.github.com/users/silvexis/gists{/gist_id}","starred_url":"https://api.github.com/users/silvexis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvexis/subscriptions","organizations_url":"https://api.github.com/users/silvexis/orgs","repos_url":"https://api.github.com/users/silvexis/repos","events_url":"https://api.github.com/users/silvexis/events{/privacy}","received_events_url":"https://api.github.com/users/silvexis/received_events","type":"User","site_admin":false},"body":"Fixes numerous isuess with CLI account provisioning and disconnecting. Adds cosmetic improvements to query and fixes a number of bugs\r\n\r\nDeveloped in parallel to to REACTOR-319 REACTOR-246 and REACTOR-245","created_at":"2017-12-10T03:57:15Z","updated_at":"2017-12-12T18:35:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1ca7cbb7e8c4417b852b5ce7a925877da6e8916","assignee":{"login":"silvexis","id":609050,"avatar_url":"https://avatars0.githubusercontent.com/u/609050?v=4","gravatar_id":"","url":"https://api.github.com/users/silvexis","html_url":"https://github.com/silvexis","followers_url":"https://api.github.com/users/silvexis/followers","following_url":"https://api.github.com/users/silvexis/following{/other_user}","gists_url":"https://api.github.com/users/silvexis/gists{/gist_id}","starred_url":"https://api.github.com/users/silvexis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvexis/subscriptions","organizations_url":"https://api.github.com/users/silvexis/orgs","repos_url":"https://api.github.com/users/silvexis/repos","events_url":"https://api.github.com/users/silvexis/events{/privacy}","received_events_url":"https://api.github.com/users/silvexis/received_events","type":"User","site_admin":false},"assignees":[{"login":"silvexis","id":609050,"avatar_url":"https://avatars0.githubusercontent.com/u/609050?v=4","gravatar_id":"","url":"https://api.github.com/users/silvexis","html_url":"https://github.com/silvexis","followers_url":"https://api.github.com/users/silvexis/followers","following_url":"https://api.github.com/users/silvexis/following{/other_user}","gists_url":"https://api.github.com/users/silvexis/gists{/gist_id}","starred_url":"https://api.github.com/users/silvexis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvexis/subscriptions","organizations_url":"https://api.github.com/users/silvexis/orgs","repos_url":"https://api.github.com/users/silvexis/repos","events_url":"https://api.github.com/users/silvexis/events{/privacy}","received_events_url":"https://api.github.com/users/silvexis/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"tiyberius","id":1237044,"avatar_url":"https://avatars0.githubusercontent.com/u/1237044?v=4","gravatar_id":"","url":"https://api.github.com/users/tiyberius","html_url":"https://github.com/tiyberius","followers_url":"https://api.github.com/users/tiyberius/followers","following_url":"https://api.github.com/users/tiyberius/following{/other_user}","gists_url":"https://api.github.com/users/tiyberius/gists{/gist_id}","starred_url":"https://api.github.com/users/tiyberius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiyberius/subscriptions","organizations_url":"https://api.github.com/users/tiyberius/orgs","repos_url":"https://api.github.com/users/tiyberius/repos","events_url":"https://api.github.com/users/tiyberius/events{/privacy}","received_events_url":"https://api.github.com/users/tiyberius/received_events","type":"User","site_admin":false},{"login":"tmclaugh","id":1562245,"avatar_url":"https://avatars3.githubusercontent.com/u/1562245?v=4","gravatar_id":"","url":"https://api.github.com/users/tmclaugh","html_url":"https://github.com/tmclaugh","followers_url":"https://api.github.com/users/tmclaugh/followers","following_url":"https://api.github.com/users/tmclaugh/following{/other_user}","gists_url":"https://api.github.com/users/tmclaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/tmclaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmclaugh/subscriptions","organizations_url":"https://api.github.com/users/tmclaugh/orgs","repos_url":"https://api.github.com/users/tmclaugh/repos","events_url":"https://api.github.com/users/tmclaugh/events{/privacy}","received_events_url":"https://api.github.com/users/tmclaugh/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls/23/commits","review_comments_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls/23/comments","review_comment_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/issues/23/comments","statuses_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/statuses/cb76656c809f0a400ff954cb7c1d307484e54f14","head":{"label":"Cloudzero:feature/CLI-17","ref":"feature/CLI-17","sha":"cb76656c809f0a400ff954cb7c1d307484e54f14","user":{"login":"Cloudzero","id":22050846,"avatar_url":"https://avatars0.githubusercontent.com/u/22050846?v=4","gravatar_id":"","url":"https://api.github.com/users/Cloudzero","html_url":"https://github.com/Cloudzero","followers_url":"https://api.github.com/users/Cloudzero/followers","following_url":"https://api.github.com/users/Cloudzero/following{/other_user}","gists_url":"https://api.github.com/users/Cloudzero/gists{/gist_id}","starred_url":"https://api.github.com/users/Cloudzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cloudzero/subscriptions","organizations_url":"https://api.github.com/users/Cloudzero/orgs","repos_url":"https://api.github.com/users/Cloudzero/repos","events_url":"https://api.github.com/users/Cloudzero/events{/privacy}","received_events_url":"https://api.github.com/users/Cloudzero/received_events","type":"Organization","site_admin":false},"repo":{"id":104485079,"name":"cloudzero-cli","full_name":"Cloudzero/cloudzero-cli","owner":{"login":"Cloudzero","id":22050846,"avatar_url":"https://avatars0.githubusercontent.com/u/22050846?v=4","gravatar_id":"","url":"https://api.github.com/users/Cloudzero","html_url":"https://github.com/Cloudzero","followers_url":"https://api.github.com/users/Cloudzero/followers","following_url":"https://api.github.com/users/Cloudzero/following{/other_user}","gists_url":"https://api.github.com/users/Cloudzero/gists{/gist_id}","starred_url":"https://api.github.com/users/Cloudzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cloudzero/subscriptions","organizations_url":"https://api.github.com/users/Cloudzero/orgs","repos_url":"https://api.github.com/users/Cloudzero/repos","events_url":"https://api.github.com/users/Cloudzero/events{/privacy}","received_events_url":"https://api.github.com/users/Cloudzero/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cloudzero/cloudzero-cli","description":"Command line interface for CloudZero and the CloudZero Reactor ","fork":false,"url":"https://api.github.com/repos/Cloudzero/cloudzero-cli","forks_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/forks","keys_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/teams","hooks_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/hooks","issue_events_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/events","assignees_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/tags","blobs_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/languages","stargazers_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/stargazers","contributors_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/contributors","subscribers_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/subscribers","subscription_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/subscription","commits_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/merges","archive_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/downloads","issues_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/labels{/name}","releases_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/releases{/id}","deployments_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/deployments","created_at":"2017-09-22T14:41:18Z","updated_at":"2017-11-10T02:20:09Z","pushed_at":"2017-12-10T03:57:16Z","git_url":"git://github.com/Cloudzero/cloudzero-cli.git","ssh_url":"git@github.com:Cloudzero/cloudzero-cli.git","clone_url":"https://github.com/Cloudzero/cloudzero-cli.git","svn_url":"https://github.com/Cloudzero/cloudzero-cli","homepage":"http://www.cloudzero.com","size":97,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-3-clause","name":"BSD 3-clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":1,"watchers":5,"default_branch":"develop"}},"base":{"label":"Cloudzero:develop","ref":"develop","sha":"d926673c9b9c0b7cc15bd2adad948a227afeb433","user":{"login":"Cloudzero","id":22050846,"avatar_url":"https://avatars0.githubusercontent.com/u/22050846?v=4","gravatar_id":"","url":"https://api.github.com/users/Cloudzero","html_url":"https://github.com/Cloudzero","followers_url":"https://api.github.com/users/Cloudzero/followers","following_url":"https://api.github.com/users/Cloudzero/following{/other_user}","gists_url":"https://api.github.com/users/Cloudzero/gists{/gist_id}","starred_url":"https://api.github.com/users/Cloudzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cloudzero/subscriptions","organizations_url":"https://api.github.com/users/Cloudzero/orgs","repos_url":"https://api.github.com/users/Cloudzero/repos","events_url":"https://api.github.com/users/Cloudzero/events{/privacy}","received_events_url":"https://api.github.com/users/Cloudzero/received_events","type":"Organization","site_admin":false},"repo":{"id":104485079,"name":"cloudzero-cli","full_name":"Cloudzero/cloudzero-cli","owner":{"login":"Cloudzero","id":22050846,"avatar_url":"https://avatars0.githubusercontent.com/u/22050846?v=4","gravatar_id":"","url":"https://api.github.com/users/Cloudzero","html_url":"https://github.com/Cloudzero","followers_url":"https://api.github.com/users/Cloudzero/followers","following_url":"https://api.github.com/users/Cloudzero/following{/other_user}","gists_url":"https://api.github.com/users/Cloudzero/gists{/gist_id}","starred_url":"https://api.github.com/users/Cloudzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cloudzero/subscriptions","organizations_url":"https://api.github.com/users/Cloudzero/orgs","repos_url":"https://api.github.com/users/Cloudzero/repos","events_url":"https://api.github.com/users/Cloudzero/events{/privacy}","received_events_url":"https://api.github.com/users/Cloudzero/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cloudzero/cloudzero-cli","description":"Command line interface for CloudZero and the CloudZero Reactor ","fork":false,"url":"https://api.github.com/repos/Cloudzero/cloudzero-cli","forks_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/forks","keys_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/teams","hooks_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/hooks","issue_events_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/events","assignees_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/tags","blobs_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/languages","stargazers_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/stargazers","contributors_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/contributors","subscribers_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/subscribers","subscription_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/subscription","commits_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/merges","archive_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/downloads","issues_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/labels{/name}","releases_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/releases{/id}","deployments_url":"https://api.github.com/repos/Cloudzero/cloudzero-cli/deployments","created_at":"2017-09-22T14:41:18Z","updated_at":"2017-11-10T02:20:09Z","pushed_at":"2017-12-10T03:57:16Z","git_url":"git://github.com/Cloudzero/cloudzero-cli.git","ssh_url":"git@github.com:Cloudzero/cloudzero-cli.git","clone_url":"https://github.com/Cloudzero/cloudzero-cli.git","svn_url":"https://github.com/Cloudzero/cloudzero-cli","homepage":"http://www.cloudzero.com","size":97,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-3-clause","name":"BSD 3-clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":1,"watchers":5,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls/23"},"html":{"href":"https://github.com/Cloudzero/cloudzero-cli/pull/23"},"issue":{"href":"https://api.github.com/repos/Cloudzero/cloudzero-cli/issues/23"},"comments":{"href":"https://api.github.com/repos/Cloudzero/cloudzero-cli/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cloudzero/cloudzero-cli/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/Cloudzero/cloudzero-cli/statuses/cb76656c809f0a400ff954cb7c1d307484e54f14"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"imcgaunn"}}