{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-linux-extensions/pulls/comments/41883548","id":41883548,"diff_hunk":"@@ -56,49 +57,70 @@ def main():\n         elif re.match(\"^([-/]*)(update)\", a):\n             update()\n \n+\n def install():\n     hutil = Util.HandlerUtility(waagent.Log, waagent.Error, ExtensionShortName)\n     hutil.do_parse_context('Uninstall')\n-    hutil.do_exit(0,'Install','Installed','0', 'Install Succeeded')\n+    hutil.do_exit(0, 'Install', 'Installed', '0', 'Install Succeeded')\n+\n \n def enable():\n     hutil = Util.HandlerUtility(waagent.Log, waagent.Error, ExtensionShortName)\n     hutil.do_parse_context('Enable')\n     try:\n-        protect_settings = hutil._context._config['runtimeSettings'][0]['handlerSettings'].get('protectedSettings')\n+        public_settings = hutil._context._config['runtimeSettings'][\n+            0]['handlerSettings'].get('publicSettings')\n+        protect_settings = hutil._context._config['runtimeSettings'][\n+            0]['handlerSettings'].get('protectedSettings')\n         reset_ssh = protect_settings.get('reset_ssh')\n-        # check port each time the VM boots up\n+        check_disk = public_settings.get('check_disk')\n+        repair_disk = public_settings.get('repair_disk')\n+    # check port each time the VM boots up\n         if reset_ssh:\n             _open_ssh_port()\n             hutil.log(\"Succeeded in check and open ssh port.\")\n-        hutil.exit_if_enabled()\n-        remove_user = protect_settings.get('remove_user')\n+            hutil.exit_if_enabled()\n+            remove_user = protect_settings.get('remove_user')","path":"VMAccess/vmaccess.py","position":56,"original_position":56,"commit_id":"5de8f32efc31a4f362369859eab462fa30fdfbd3","original_commit_id":"5de8f32efc31a4f362369859eab462fa30fdfbd3","user":{"login":"paulmey","id":1740197,"avatar_url":"https://avatars.githubusercontent.com/u/1740197?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmey","html_url":"https://github.com/paulmey","followers_url":"https://api.github.com/users/paulmey/followers","following_url":"https://api.github.com/users/paulmey/following{/other_user}","gists_url":"https://api.github.com/users/paulmey/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmey/subscriptions","organizations_url":"https://api.github.com/users/paulmey/orgs","repos_url":"https://api.github.com/users/paulmey/repos","events_url":"https://api.github.com/users/paulmey/events{/privacy}","received_events_url":"https://api.github.com/users/paulmey/received_events","type":"User","site_admin":false},"body":"this fix breaks... :-)\r\n`remove_user` is used below in the if statement. I think these two lines were intended to be at the original indent level.","created_at":"2015-10-13T15:39:09Z","updated_at":"2015-10-13T15:39:09Z","html_url":"https://github.com/Azure/azure-linux-extensions/pull/23#discussion_r41883548","pull_request_url":"https://api.github.com/repos/Azure/azure-linux-extensions/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-linux-extensions/pulls/comments/41883548"},"html":{"href":"https://github.com/Azure/azure-linux-extensions/pull/23#discussion_r41883548"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-linux-extensions/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-linux-extensions/pulls/23","id":41360743,"html_url":"https://github.com/Azure/azure-linux-extensions/pull/23","diff_url":"https://github.com/Azure/azure-linux-extensions/pull/23.diff","patch_url":"https://github.com/Azure/azure-linux-extensions/pull/23.patch","issue_url":"https://api.github.com/repos/Azure/azure-linux-extensions/issues/23","number":23,"state":"open","locked":false,"title":"Adding Check and Repair disk to VMAccessExtension","user":{"login":"Snesha","id":4259484,"avatar_url":"https://avatars.githubusercontent.com/u/4259484?v=3","gravatar_id":"","url":"https://api.github.com/users/Snesha","html_url":"https://github.com/Snesha","followers_url":"https://api.github.com/users/Snesha/followers","following_url":"https://api.github.com/users/Snesha/following{/other_user}","gists_url":"https://api.github.com/users/Snesha/gists{/gist_id}","starred_url":"https://api.github.com/users/Snesha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Snesha/subscriptions","organizations_url":"https://api.github.com/users/Snesha/orgs","repos_url":"https://api.github.com/users/Snesha/repos","events_url":"https://api.github.com/users/Snesha/events{/privacy}","received_events_url":"https://api.github.com/users/Snesha/received_events","type":"User","site_admin":false},"body":"Yue, could you please review? This is new functionality that has been requested.","created_at":"2015-07-31T17:14:44Z","updated_at":"2015-10-13T15:39:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4624f0a2bba6ee3353af2171fc16310b93ad14f3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-linux-extensions/pulls/23/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-linux-extensions/pulls/23/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-linux-extensions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-linux-extensions/issues/23/comments","statuses_url":"https://api.github.com/repos/Azure/azure-linux-extensions/statuses/5de8f32efc31a4f362369859eab462fa30fdfbd3","head":{"label":"Snesha:sneshaf-dev","ref":"sneshaf-dev","sha":"5de8f32efc31a4f362369859eab462fa30fdfbd3","user":{"login":"Snesha","id":4259484,"avatar_url":"https://avatars.githubusercontent.com/u/4259484?v=3","gravatar_id":"","url":"https://api.github.com/users/Snesha","html_url":"https://github.com/Snesha","followers_url":"https://api.github.com/users/Snesha/followers","following_url":"https://api.github.com/users/Snesha/following{/other_user}","gists_url":"https://api.github.com/users/Snesha/gists{/gist_id}","starred_url":"https://api.github.com/users/Snesha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Snesha/subscriptions","organizations_url":"https://api.github.com/users/Snesha/orgs","repos_url":"https://api.github.com/users/Snesha/repos","events_url":"https://api.github.com/users/Snesha/events{/privacy}","received_events_url":"https://api.github.com/users/Snesha/received_events","type":"User","site_admin":false},"repo":{"id":40015839,"name":"azure-linux-extensions","full_name":"Snesha/azure-linux-extensions","owner":{"login":"Snesha","id":4259484,"avatar_url":"https://avatars.githubusercontent.com/u/4259484?v=3","gravatar_id":"","url":"https://api.github.com/users/Snesha","html_url":"https://github.com/Snesha","followers_url":"https://api.github.com/users/Snesha/followers","following_url":"https://api.github.com/users/Snesha/following{/other_user}","gists_url":"https://api.github.com/users/Snesha/gists{/gist_id}","starred_url":"https://api.github.com/users/Snesha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Snesha/subscriptions","organizations_url":"https://api.github.com/users/Snesha/orgs","repos_url":"https://api.github.com/users/Snesha/repos","events_url":"https://api.github.com/users/Snesha/events{/privacy}","received_events_url":"https://api.github.com/users/Snesha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Snesha/azure-linux-extensions","description":"","fork":true,"url":"https://api.github.com/repos/Snesha/azure-linux-extensions","forks_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/forks","keys_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/teams","hooks_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/hooks","issue_events_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/events","assignees_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/tags","blobs_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/languages","stargazers_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/stargazers","contributors_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/contributors","subscribers_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/subscribers","subscription_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/subscription","commits_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/merges","archive_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/downloads","issues_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/labels{/name}","releases_url":"https://api.github.com/repos/Snesha/azure-linux-extensions/releases{/id}","created_at":"2015-07-31T17:05:46Z","updated_at":"2015-07-31T17:05:47Z","pushed_at":"2015-10-12T23:53:15Z","git_url":"git://github.com/Snesha/azure-linux-extensions.git","ssh_url":"git@github.com:Snesha/azure-linux-extensions.git","clone_url":"https://github.com/Snesha/azure-linux-extensions.git","svn_url":"https://github.com/Snesha/azure-linux-extensions","homepage":null,"size":57818,"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":"Azure:master","ref":"master","sha":"49a6fc374d181f71d1ab4a1b54eeaa9454887a27","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":19841123,"name":"azure-linux-extensions","full_name":"Azure/azure-linux-extensions","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-linux-extensions","description":"","fork":false,"url":"https://api.github.com/repos/Azure/azure-linux-extensions","forks_url":"https://api.github.com/repos/Azure/azure-linux-extensions/forks","keys_url":"https://api.github.com/repos/Azure/azure-linux-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-linux-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-linux-extensions/teams","hooks_url":"https://api.github.com/repos/Azure/azure-linux-extensions/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-linux-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-linux-extensions/events","assignees_url":"https://api.github.com/repos/Azure/azure-linux-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-linux-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-linux-extensions/tags","blobs_url":"https://api.github.com/repos/Azure/azure-linux-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-linux-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-linux-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-linux-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-linux-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-linux-extensions/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-linux-extensions/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-linux-extensions/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-linux-extensions/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-linux-extensions/subscription","commits_url":"https://api.github.com/repos/Azure/azure-linux-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-linux-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-linux-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-linux-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-linux-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-linux-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-linux-extensions/merges","archive_url":"https://api.github.com/repos/Azure/azure-linux-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-linux-extensions/downloads","issues_url":"https://api.github.com/repos/Azure/azure-linux-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-linux-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-linux-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-linux-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-linux-extensions/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-linux-extensions/releases{/id}","created_at":"2014-05-16T01:38:49Z","updated_at":"2015-10-11T04:05:11Z","pushed_at":"2015-10-13T03:34:02Z","git_url":"git://github.com/Azure/azure-linux-extensions.git","ssh_url":"git@github.com:Azure/azure-linux-extensions.git","clone_url":"https://github.com/Azure/azure-linux-extensions.git","svn_url":"https://github.com/Azure/azure-linux-extensions","homepage":null,"size":87646,"stargazers_count":22,"watchers_count":22,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":5,"forks":18,"open_issues":5,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-linux-extensions/pulls/23"},"html":{"href":"https://github.com/Azure/azure-linux-extensions/pull/23"},"issue":{"href":"https://api.github.com/repos/Azure/azure-linux-extensions/issues/23"},"comments":{"href":"https://api.github.com/repos/Azure/azure-linux-extensions/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-linux-extensions/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-linux-extensions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-linux-extensions/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-linux-extensions/statuses/5de8f32efc31a4f362369859eab462fa30fdfbd3"}}}}