{"action":"created","comment":{"url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/pulls/comments/35053071","id":35053071,"diff_hunk":"@@ -0,0 +1,111 @@\n+--[[\n+Copyright 2015 Rackspace\n+\n+Licensed under the Apache License, Version 2.0 (the \"License\");\n+you may not use this file except in compliance with the License.\n+You may obtain a copy of the License at\n+\n+    http://www.apache.org/licenses/LICENSE-2.0\n+\n+Unless required by applicable law or agreed to in writing, software\n+distributed under the License is distributed on an \"AS-IS\" BASIS,\n+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+See the License for the specific language governing permissions and\n+limitations under the License.\n+]]--\n+local table = require('table')\n+local los = require('los')\n+local async = require('async')\n+local exists = require('fs').exists\n+local stat = require('fs').stat\n+local band = bit.band\n+local fmt = require('string').format\n+\n+--[[ Check file permissions ]]--\n+local HostInfo = require('./base').HostInfo\n+local Info = HostInfo:extend()\n+function Info:initialize()\n+  HostInfo.initialize(self)\n+end\n+\n+function Info:run(callback)\n+  if los.type() ~= 'linux' then\n+    self._error = 'Unsupported OS for file permissions'\n+    callback()\n+    return\n+  end\n+\n+  local fileList = {\n+  '/etc/grub.conf',","path":"hostinfo/fileperms.lua","position":39,"original_position":39,"commit_id":"5b153e97c970ab64af3a648a4dff96b7f0adb1ec","original_commit_id":"5b153e97c970ab64af3a648a4dff96b7f0adb1ec","user":{"login":"creationix","id":89353,"avatar_url":"https://avatars.githubusercontent.com/u/89353?v=3","gravatar_id":"","url":"https://api.github.com/users/creationix","html_url":"https://github.com/creationix","followers_url":"https://api.github.com/users/creationix/followers","following_url":"https://api.github.com/users/creationix/following{/other_user}","gists_url":"https://api.github.com/users/creationix/gists{/gist_id}","starred_url":"https://api.github.com/users/creationix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creationix/subscriptions","organizations_url":"https://api.github.com/users/creationix/orgs","repos_url":"https://api.github.com/users/creationix/repos","events_url":"https://api.github.com/users/creationix/events{/privacy}","received_events_url":"https://api.github.com/users/creationix/received_events","type":"User","site_admin":false},"body":"Looks like your somehow lost indentation between this and the double end below around line 96.","created_at":"2015-07-20T22:44:40Z","updated_at":"2015-07-20T22:44:40Z","html_url":"https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent/pull/779#discussion_r35053071","pull_request_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/pulls/779","_links":{"self":{"href":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/pulls/comments/35053071"},"html":{"href":"https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent/pull/779#discussion_r35053071"},"pull_request":{"href":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/pulls/779"}}},"pull_request":{"url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/pulls/779","id":40189128,"html_url":"https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent/pull/779","diff_url":"https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent/pull/779.diff","patch_url":"https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent/pull/779.patch","issue_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/issues/779","number":779,"state":"open","locked":false,"title":"feat(hostinfo/fileperms)","user":{"login":"kaustavha","id":3248143,"avatar_url":"https://avatars.githubusercontent.com/u/3248143?v=3","gravatar_id":"","url":"https://api.github.com/users/kaustavha","html_url":"https://github.com/kaustavha","followers_url":"https://api.github.com/users/kaustavha/followers","following_url":"https://api.github.com/users/kaustavha/following{/other_user}","gists_url":"https://api.github.com/users/kaustavha/gists{/gist_id}","starred_url":"https://api.github.com/users/kaustavha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaustavha/subscriptions","organizations_url":"https://api.github.com/users/kaustavha/orgs","repos_url":"https://api.github.com/users/kaustavha/repos","events_url":"https://api.github.com/users/kaustavha/events{/privacy}","received_events_url":"https://api.github.com/users/kaustavha/received_events","type":"User","site_admin":false},"body":"Added a hostinfo check to retrieve file permissions on linux","created_at":"2015-07-17T00:02:47Z","updated_at":"2015-07-20T22:44:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a861a1c235255acebad6c3e2085baf36da9f617c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/pulls/779/commits","review_comments_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/pulls/779/comments","review_comment_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/issues/779/comments","statuses_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/statuses/5b153e97c970ab64af3a648a4dff96b7f0adb1ec","head":{"label":"kaustavha:kaustavha/feat/fileperms","ref":"kaustavha/feat/fileperms","sha":"5b153e97c970ab64af3a648a4dff96b7f0adb1ec","user":{"login":"kaustavha","id":3248143,"avatar_url":"https://avatars.githubusercontent.com/u/3248143?v=3","gravatar_id":"","url":"https://api.github.com/users/kaustavha","html_url":"https://github.com/kaustavha","followers_url":"https://api.github.com/users/kaustavha/followers","following_url":"https://api.github.com/users/kaustavha/following{/other_user}","gists_url":"https://api.github.com/users/kaustavha/gists{/gist_id}","starred_url":"https://api.github.com/users/kaustavha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaustavha/subscriptions","organizations_url":"https://api.github.com/users/kaustavha/orgs","repos_url":"https://api.github.com/users/kaustavha/repos","events_url":"https://api.github.com/users/kaustavha/events{/privacy}","received_events_url":"https://api.github.com/users/kaustavha/received_events","type":"User","site_admin":false},"repo":{"id":39226093,"name":"rackspace-monitoring-agent","full_name":"kaustavha/rackspace-monitoring-agent","owner":{"login":"kaustavha","id":3248143,"avatar_url":"https://avatars.githubusercontent.com/u/3248143?v=3","gravatar_id":"","url":"https://api.github.com/users/kaustavha","html_url":"https://github.com/kaustavha","followers_url":"https://api.github.com/users/kaustavha/followers","following_url":"https://api.github.com/users/kaustavha/following{/other_user}","gists_url":"https://api.github.com/users/kaustavha/gists{/gist_id}","starred_url":"https://api.github.com/users/kaustavha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaustavha/subscriptions","organizations_url":"https://api.github.com/users/kaustavha/orgs","repos_url":"https://api.github.com/users/kaustavha/repos","events_url":"https://api.github.com/users/kaustavha/events{/privacy}","received_events_url":"https://api.github.com/users/kaustavha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaustavha/rackspace-monitoring-agent","description":"Rackspace Cloud Monitoring Agent","fork":true,"url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent","forks_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/forks","keys_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/teams","hooks_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/hooks","issue_events_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/issues/events{/number}","events_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/events","assignees_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/assignees{/user}","branches_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/branches{/branch}","tags_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/tags","blobs_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/languages","stargazers_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/stargazers","contributors_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/contributors","subscribers_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/subscribers","subscription_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/subscription","commits_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/contents/{+path}","compare_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/merges","archive_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/downloads","issues_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/issues{/number}","pulls_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/labels{/name}","releases_url":"https://api.github.com/repos/kaustavha/rackspace-monitoring-agent/releases{/id}","created_at":"2015-07-16T23:57:27Z","updated_at":"2015-07-16T23:57:28Z","pushed_at":"2015-07-20T22:37:02Z","git_url":"git://github.com/kaustavha/rackspace-monitoring-agent.git","ssh_url":"git@github.com:kaustavha/rackspace-monitoring-agent.git","clone_url":"https://github.com/kaustavha/rackspace-monitoring-agent.git","svn_url":"https://github.com/kaustavha/rackspace-monitoring-agent","homepage":"http://virgoagent.com/rackspace-monitoring-agent/","size":18708,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"virgo-agent-toolkit:master","ref":"master","sha":"08a6a3eae9473d2993b63810d086a9fc16675c8b","user":{"login":"virgo-agent-toolkit","id":6343547,"avatar_url":"https://avatars.githubusercontent.com/u/6343547?v=3","gravatar_id":"","url":"https://api.github.com/users/virgo-agent-toolkit","html_url":"https://github.com/virgo-agent-toolkit","followers_url":"https://api.github.com/users/virgo-agent-toolkit/followers","following_url":"https://api.github.com/users/virgo-agent-toolkit/following{/other_user}","gists_url":"https://api.github.com/users/virgo-agent-toolkit/gists{/gist_id}","starred_url":"https://api.github.com/users/virgo-agent-toolkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virgo-agent-toolkit/subscriptions","organizations_url":"https://api.github.com/users/virgo-agent-toolkit/orgs","repos_url":"https://api.github.com/users/virgo-agent-toolkit/repos","events_url":"https://api.github.com/users/virgo-agent-toolkit/events{/privacy}","received_events_url":"https://api.github.com/users/virgo-agent-toolkit/received_events","type":"Organization","site_admin":false},"repo":{"id":2034526,"name":"rackspace-monitoring-agent","full_name":"virgo-agent-toolkit/rackspace-monitoring-agent","owner":{"login":"virgo-agent-toolkit","id":6343547,"avatar_url":"https://avatars.githubusercontent.com/u/6343547?v=3","gravatar_id":"","url":"https://api.github.com/users/virgo-agent-toolkit","html_url":"https://github.com/virgo-agent-toolkit","followers_url":"https://api.github.com/users/virgo-agent-toolkit/followers","following_url":"https://api.github.com/users/virgo-agent-toolkit/following{/other_user}","gists_url":"https://api.github.com/users/virgo-agent-toolkit/gists{/gist_id}","starred_url":"https://api.github.com/users/virgo-agent-toolkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virgo-agent-toolkit/subscriptions","organizations_url":"https://api.github.com/users/virgo-agent-toolkit/orgs","repos_url":"https://api.github.com/users/virgo-agent-toolkit/repos","events_url":"https://api.github.com/users/virgo-agent-toolkit/events{/privacy}","received_events_url":"https://api.github.com/users/virgo-agent-toolkit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent","description":"Rackspace Cloud Monitoring Agent","fork":false,"url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent","forks_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/forks","keys_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/teams","hooks_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/hooks","issue_events_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/issues/events{/number}","events_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/events","assignees_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/assignees{/user}","branches_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/branches{/branch}","tags_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/tags","blobs_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/languages","stargazers_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/stargazers","contributors_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/contributors","subscribers_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/subscribers","subscription_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/subscription","commits_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/contents/{+path}","compare_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/merges","archive_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/downloads","issues_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/issues{/number}","pulls_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/labels{/name}","releases_url":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/releases{/id}","created_at":"2011-07-12T06:25:25Z","updated_at":"2015-06-17T21:30:24Z","pushed_at":"2015-07-20T22:37:03Z","git_url":"git://github.com/virgo-agent-toolkit/rackspace-monitoring-agent.git","ssh_url":"git@github.com:virgo-agent-toolkit/rackspace-monitoring-agent.git","clone_url":"https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent.git","svn_url":"https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent","homepage":"http://virgoagent.com/rackspace-monitoring-agent/","size":102546,"stargazers_count":112,"watchers_count":112,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":34,"mirror_url":null,"open_issues_count":47,"forks":34,"open_issues":47,"watchers":112,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/pulls/779"},"html":{"href":"https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent/pull/779"},"issue":{"href":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/issues/779"},"comments":{"href":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/issues/779/comments"},"review_comments":{"href":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/pulls/779/comments"},"review_comment":{"href":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/pulls/779/commits"},"statuses":{"href":"https://api.github.com/repos/virgo-agent-toolkit/rackspace-monitoring-agent/statuses/5b153e97c970ab64af3a648a4dff96b7f0adb1ec"}}}}