{"action":"created","comment":{"url":"https://api.github.com/repos/google/grr/pulls/comments/29151726","id":29151726,"diff_hunk":"@@ -479,9 +510,7 @@ def Initialize(config=None, token=None):\n   startup.ConfigInit()\n \n   print \"\\nStep 3: Adding Admin User\"\n-  password = getpass.getpass(prompt=\"Please enter password for user 'admin': \")\n-  UpdateUser(\"admin\", password, [\"admin\"], token=token)\n-  print \"User admin added.\"\n+  AddUser(\"admin\", [\"admin\"], token=token)","path":"tools/config_updater.py","position":82,"original_position":82,"commit_id":"a5dd495bda045bd5c707693ff01d137aa4ff0d97","original_commit_id":"a5dd495bda045bd5c707693ff01d137aa4ff0d97","user":{"login":"pidydx","id":8451350,"avatar_url":"https://avatars.githubusercontent.com/u/8451350?v=3","gravatar_id":"","url":"https://api.github.com/users/pidydx","html_url":"https://github.com/pidydx","followers_url":"https://api.github.com/users/pidydx/followers","following_url":"https://api.github.com/users/pidydx/following{/other_user}","gists_url":"https://api.github.com/users/pidydx/gists{/gist_id}","starred_url":"https://api.github.com/users/pidydx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pidydx/subscriptions","organizations_url":"https://api.github.com/users/pidydx/orgs","repos_url":"https://api.github.com/users/pidydx/repos","events_url":"https://api.github.com/users/pidydx/events{/privacy}","received_events_url":"https://api.github.com/users/pidydx/received_events","type":"User","site_admin":false},"body":"Good catch, thanks!","created_at":"2015-04-27T14:39:07Z","updated_at":"2015-04-27T14:39:07Z","html_url":"https://github.com/google/grr/pull/166#discussion_r29151726","pull_request_url":"https://api.github.com/repos/google/grr/pulls/166","_links":{"self":{"href":"https://api.github.com/repos/google/grr/pulls/comments/29151726"},"html":{"href":"https://github.com/google/grr/pull/166#discussion_r29151726"},"pull_request":{"href":"https://api.github.com/repos/google/grr/pulls/166"}}},"pull_request":{"url":"https://api.github.com/repos/google/grr/pulls/166","id":34077624,"html_url":"https://github.com/google/grr/pull/166","diff_url":"https://github.com/google/grr/pull/166.diff","patch_url":"https://github.com/google/grr/pull/166.patch","issue_url":"https://api.github.com/repos/google/grr/issues/166","number":166,"state":"open","locked":false,"title":"Separated AddUser and UpdateUser for proper behavior","user":{"login":"pidydx","id":8451350,"avatar_url":"https://avatars.githubusercontent.com/u/8451350?v=3","gravatar_id":"","url":"https://api.github.com/users/pidydx","html_url":"https://github.com/pidydx","followers_url":"https://api.github.com/users/pidydx/followers","following_url":"https://api.github.com/users/pidydx/following{/other_user}","gists_url":"https://api.github.com/users/pidydx/gists{/gist_id}","starred_url":"https://api.github.com/users/pidydx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pidydx/subscriptions","organizations_url":"https://api.github.com/users/pidydx/orgs","repos_url":"https://api.github.com/users/pidydx/repos","events_url":"https://api.github.com/users/pidydx/events{/privacy}","received_events_url":"https://api.github.com/users/pidydx/received_events","type":"User","site_admin":false},"body":"This addresses this issue: https://github.com/google/grr/issues/158\r\nIt also fixes add_user so that you are not forced to type your password on the command line and extends add_user to allow creation with labels.\r\nAn existing user cannot be overridden by accident with a call to add_user as well.","created_at":"2015-04-24T19:15:16Z","updated_at":"2015-04-27T14:39:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1455ddb55fe148ba54c08ec9e296d2b353965a51","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/grr/pulls/166/commits","review_comments_url":"https://api.github.com/repos/google/grr/pulls/166/comments","review_comment_url":"https://api.github.com/repos/google/grr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/grr/issues/166/comments","statuses_url":"https://api.github.com/repos/google/grr/statuses/a5dd495bda045bd5c707693ff01d137aa4ff0d97","head":{"label":"pidydx:UpdateUser","ref":"UpdateUser","sha":"a5dd495bda045bd5c707693ff01d137aa4ff0d97","user":{"login":"pidydx","id":8451350,"avatar_url":"https://avatars.githubusercontent.com/u/8451350?v=3","gravatar_id":"","url":"https://api.github.com/users/pidydx","html_url":"https://github.com/pidydx","followers_url":"https://api.github.com/users/pidydx/followers","following_url":"https://api.github.com/users/pidydx/following{/other_user}","gists_url":"https://api.github.com/users/pidydx/gists{/gist_id}","starred_url":"https://api.github.com/users/pidydx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pidydx/subscriptions","organizations_url":"https://api.github.com/users/pidydx/orgs","repos_url":"https://api.github.com/users/pidydx/repos","events_url":"https://api.github.com/users/pidydx/events{/privacy}","received_events_url":"https://api.github.com/users/pidydx/received_events","type":"User","site_admin":false},"repo":{"id":25012093,"name":"grr","full_name":"pidydx/grr","owner":{"login":"pidydx","id":8451350,"avatar_url":"https://avatars.githubusercontent.com/u/8451350?v=3","gravatar_id":"","url":"https://api.github.com/users/pidydx","html_url":"https://github.com/pidydx","followers_url":"https://api.github.com/users/pidydx/followers","following_url":"https://api.github.com/users/pidydx/following{/other_user}","gists_url":"https://api.github.com/users/pidydx/gists{/gist_id}","starred_url":"https://api.github.com/users/pidydx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pidydx/subscriptions","organizations_url":"https://api.github.com/users/pidydx/orgs","repos_url":"https://api.github.com/users/pidydx/repos","events_url":"https://api.github.com/users/pidydx/events{/privacy}","received_events_url":"https://api.github.com/users/pidydx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pidydx/grr","description":"GRR Rapid Response Framework","fork":true,"url":"https://api.github.com/repos/pidydx/grr","forks_url":"https://api.github.com/repos/pidydx/grr/forks","keys_url":"https://api.github.com/repos/pidydx/grr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pidydx/grr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pidydx/grr/teams","hooks_url":"https://api.github.com/repos/pidydx/grr/hooks","issue_events_url":"https://api.github.com/repos/pidydx/grr/issues/events{/number}","events_url":"https://api.github.com/repos/pidydx/grr/events","assignees_url":"https://api.github.com/repos/pidydx/grr/assignees{/user}","branches_url":"https://api.github.com/repos/pidydx/grr/branches{/branch}","tags_url":"https://api.github.com/repos/pidydx/grr/tags","blobs_url":"https://api.github.com/repos/pidydx/grr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pidydx/grr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pidydx/grr/git/refs{/sha}","trees_url":"https://api.github.com/repos/pidydx/grr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pidydx/grr/statuses/{sha}","languages_url":"https://api.github.com/repos/pidydx/grr/languages","stargazers_url":"https://api.github.com/repos/pidydx/grr/stargazers","contributors_url":"https://api.github.com/repos/pidydx/grr/contributors","subscribers_url":"https://api.github.com/repos/pidydx/grr/subscribers","subscription_url":"https://api.github.com/repos/pidydx/grr/subscription","commits_url":"https://api.github.com/repos/pidydx/grr/commits{/sha}","git_commits_url":"https://api.github.com/repos/pidydx/grr/git/commits{/sha}","comments_url":"https://api.github.com/repos/pidydx/grr/comments{/number}","issue_comment_url":"https://api.github.com/repos/pidydx/grr/issues/comments{/number}","contents_url":"https://api.github.com/repos/pidydx/grr/contents/{+path}","compare_url":"https://api.github.com/repos/pidydx/grr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pidydx/grr/merges","archive_url":"https://api.github.com/repos/pidydx/grr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pidydx/grr/downloads","issues_url":"https://api.github.com/repos/pidydx/grr/issues{/number}","pulls_url":"https://api.github.com/repos/pidydx/grr/pulls{/number}","milestones_url":"https://api.github.com/repos/pidydx/grr/milestones{/number}","notifications_url":"https://api.github.com/repos/pidydx/grr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pidydx/grr/labels{/name}","releases_url":"https://api.github.com/repos/pidydx/grr/releases{/id}","created_at":"2014-10-09T23:02:32Z","updated_at":"2015-04-24T17:18:47Z","pushed_at":"2015-04-27T13:45:57Z","git_url":"git://github.com/pidydx/grr.git","ssh_url":"git@github.com:pidydx/grr.git","clone_url":"https://github.com/pidydx/grr.git","svn_url":"https://github.com/pidydx/grr","homepage":"","size":124061,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"d695f2be7a5229ebeddbec4d513f4472caecbde4","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":14909673,"name":"grr","full_name":"google/grr","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/grr","description":"GRR Rapid Response: remote live forensics for incident response","fork":false,"url":"https://api.github.com/repos/google/grr","forks_url":"https://api.github.com/repos/google/grr/forks","keys_url":"https://api.github.com/repos/google/grr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/grr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/grr/teams","hooks_url":"https://api.github.com/repos/google/grr/hooks","issue_events_url":"https://api.github.com/repos/google/grr/issues/events{/number}","events_url":"https://api.github.com/repos/google/grr/events","assignees_url":"https://api.github.com/repos/google/grr/assignees{/user}","branches_url":"https://api.github.com/repos/google/grr/branches{/branch}","tags_url":"https://api.github.com/repos/google/grr/tags","blobs_url":"https://api.github.com/repos/google/grr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/grr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/grr/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/grr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/grr/statuses/{sha}","languages_url":"https://api.github.com/repos/google/grr/languages","stargazers_url":"https://api.github.com/repos/google/grr/stargazers","contributors_url":"https://api.github.com/repos/google/grr/contributors","subscribers_url":"https://api.github.com/repos/google/grr/subscribers","subscription_url":"https://api.github.com/repos/google/grr/subscription","commits_url":"https://api.github.com/repos/google/grr/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/grr/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/grr/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/grr/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/grr/contents/{+path}","compare_url":"https://api.github.com/repos/google/grr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/grr/merges","archive_url":"https://api.github.com/repos/google/grr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/grr/downloads","issues_url":"https://api.github.com/repos/google/grr/issues{/number}","pulls_url":"https://api.github.com/repos/google/grr/pulls{/number}","milestones_url":"https://api.github.com/repos/google/grr/milestones{/number}","notifications_url":"https://api.github.com/repos/google/grr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/grr/labels{/name}","releases_url":"https://api.github.com/repos/google/grr/releases{/id}","created_at":"2013-12-04T00:17:53Z","updated_at":"2015-04-27T10:06:55Z","pushed_at":"2015-04-27T13:45:58Z","git_url":"git://github.com/google/grr.git","ssh_url":"git@github.com:google/grr.git","clone_url":"https://github.com/google/grr.git","svn_url":"https://github.com/google/grr","homepage":"","size":125620,"stargazers_count":408,"watchers_count":408,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":78,"mirror_url":null,"open_issues_count":47,"forks":78,"open_issues":47,"watchers":408,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/grr/pulls/166"},"html":{"href":"https://github.com/google/grr/pull/166"},"issue":{"href":"https://api.github.com/repos/google/grr/issues/166"},"comments":{"href":"https://api.github.com/repos/google/grr/issues/166/comments"},"review_comments":{"href":"https://api.github.com/repos/google/grr/pulls/166/comments"},"review_comment":{"href":"https://api.github.com/repos/google/grr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/grr/pulls/166/commits"},"statuses":{"href":"https://api.github.com/repos/google/grr/statuses/a5dd495bda045bd5c707693ff01d137aa4ff0d97"}}}}