{"action":"created","comment":{"url":"https://api.github.com/repos/Tendrl/commons/pulls/comments/107848463","pull_request_review_id":28843975,"id":107848463,"diff_hunk":"@@ -24,10 +26,20 @@ def _getNodeMemory(self):\n                    \"Type\":      \"type\"}, ...], ...}\n \n         '''\n-\n-        cmd = cmd_utils.Command(\"cat /proc/meminfo\")\n-        out, err, rc = cmd.run()\n-        out = str(out)\n+        try:\n+            out = None\n+            with open('/proc/meminfo', 'r') as f:","path":"tendrl/commons/objects/memory/__init__.py","position":17,"original_position":17,"commit_id":"c3e68d0f3314efcb562d0e8c71a980de668d5f49","original_commit_id":"c3e68d0f3314efcb562d0e8c71a980de668d5f49","user":{"login":"r0h4n","id":369941,"avatar_url":"https://avatars3.githubusercontent.com/u/369941?v=3","gravatar_id":"","url":"https://api.github.com/users/r0h4n","html_url":"https://github.com/r0h4n","followers_url":"https://api.github.com/users/r0h4n/followers","following_url":"https://api.github.com/users/r0h4n/following{/other_user}","gists_url":"https://api.github.com/users/r0h4n/gists{/gist_id}","starred_url":"https://api.github.com/users/r0h4n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r0h4n/subscriptions","organizations_url":"https://api.github.com/users/r0h4n/orgs","repos_url":"https://api.github.com/users/r0h4n/repos","events_url":"https://api.github.com/users/r0h4n/events{/privacy}","received_events_url":"https://api.github.com/users/r0h4n/received_events","type":"User","site_admin":false},"body":"You dont need 'r' here, it is the default mode","created_at":"2017-03-24T07:38:45Z","updated_at":"2017-03-24T07:38:51Z","html_url":"https://github.com/Tendrl/commons/pull/297#discussion_r107848463","pull_request_url":"https://api.github.com/repos/Tendrl/commons/pulls/297","_links":{"self":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/comments/107848463"},"html":{"href":"https://github.com/Tendrl/commons/pull/297#discussion_r107848463"},"pull_request":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/297"}}},"pull_request":{"url":"https://api.github.com/repos/Tendrl/commons/pulls/297","id":112263854,"html_url":"https://github.com/Tendrl/commons/pull/297","diff_url":"https://github.com/Tendrl/commons/pull/297.diff","patch_url":"https://github.com/Tendrl/commons/pull/297.patch","issue_url":"https://api.github.com/repos/Tendrl/commons/issues/297","number":297,"state":"open","locked":false,"title":"cat commnads are replace by reading from file","user":{"login":"GowthamShanmugam","id":15073590,"avatar_url":"https://avatars3.githubusercontent.com/u/15073590?v=3","gravatar_id":"","url":"https://api.github.com/users/GowthamShanmugam","html_url":"https://github.com/GowthamShanmugam","followers_url":"https://api.github.com/users/GowthamShanmugam/followers","following_url":"https://api.github.com/users/GowthamShanmugam/following{/other_user}","gists_url":"https://api.github.com/users/GowthamShanmugam/gists{/gist_id}","starred_url":"https://api.github.com/users/GowthamShanmugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GowthamShanmugam/subscriptions","organizations_url":"https://api.github.com/users/GowthamShanmugam/orgs","repos_url":"https://api.github.com/users/GowthamShanmugam/repos","events_url":"https://api.github.com/users/GowthamShanmugam/events{/privacy}","received_events_url":"https://api.github.com/users/GowthamShanmugam/received_events","type":"User","site_admin":false},"body":"tendrl-bug-id: Tendrl/commons#289\r\n\r\nSigned-off-by: GowthamShanmugam <gshanmug@redhat.com>","created_at":"2017-03-23T15:19:59Z","updated_at":"2017-03-24T07:38:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a36c1943444cda16b7a9f1c35e6a289112f11b78","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tendrl/commons/pulls/297/commits","review_comments_url":"https://api.github.com/repos/Tendrl/commons/pulls/297/comments","review_comment_url":"https://api.github.com/repos/Tendrl/commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tendrl/commons/issues/297/comments","statuses_url":"https://api.github.com/repos/Tendrl/commons/statuses/c3e68d0f3314efcb562d0e8c71a980de668d5f49","head":{"label":"GowthamShanmugam:remove_cat_command","ref":"remove_cat_command","sha":"c3e68d0f3314efcb562d0e8c71a980de668d5f49","user":{"login":"GowthamShanmugam","id":15073590,"avatar_url":"https://avatars3.githubusercontent.com/u/15073590?v=3","gravatar_id":"","url":"https://api.github.com/users/GowthamShanmugam","html_url":"https://github.com/GowthamShanmugam","followers_url":"https://api.github.com/users/GowthamShanmugam/followers","following_url":"https://api.github.com/users/GowthamShanmugam/following{/other_user}","gists_url":"https://api.github.com/users/GowthamShanmugam/gists{/gist_id}","starred_url":"https://api.github.com/users/GowthamShanmugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GowthamShanmugam/subscriptions","organizations_url":"https://api.github.com/users/GowthamShanmugam/orgs","repos_url":"https://api.github.com/users/GowthamShanmugam/repos","events_url":"https://api.github.com/users/GowthamShanmugam/events{/privacy}","received_events_url":"https://api.github.com/users/GowthamShanmugam/received_events","type":"User","site_admin":false},"repo":{"id":82189490,"name":"commons","full_name":"GowthamShanmugam/commons","owner":{"login":"GowthamShanmugam","id":15073590,"avatar_url":"https://avatars3.githubusercontent.com/u/15073590?v=3","gravatar_id":"","url":"https://api.github.com/users/GowthamShanmugam","html_url":"https://github.com/GowthamShanmugam","followers_url":"https://api.github.com/users/GowthamShanmugam/followers","following_url":"https://api.github.com/users/GowthamShanmugam/following{/other_user}","gists_url":"https://api.github.com/users/GowthamShanmugam/gists{/gist_id}","starred_url":"https://api.github.com/users/GowthamShanmugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GowthamShanmugam/subscriptions","organizations_url":"https://api.github.com/users/GowthamShanmugam/orgs","repos_url":"https://api.github.com/users/GowthamShanmugam/repos","events_url":"https://api.github.com/users/GowthamShanmugam/events{/privacy}","received_events_url":"https://api.github.com/users/GowthamShanmugam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GowthamShanmugam/commons","description":"Common code usable by all Tendrl components","fork":true,"url":"https://api.github.com/repos/GowthamShanmugam/commons","forks_url":"https://api.github.com/repos/GowthamShanmugam/commons/forks","keys_url":"https://api.github.com/repos/GowthamShanmugam/commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GowthamShanmugam/commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GowthamShanmugam/commons/teams","hooks_url":"https://api.github.com/repos/GowthamShanmugam/commons/hooks","issue_events_url":"https://api.github.com/repos/GowthamShanmugam/commons/issues/events{/number}","events_url":"https://api.github.com/repos/GowthamShanmugam/commons/events","assignees_url":"https://api.github.com/repos/GowthamShanmugam/commons/assignees{/user}","branches_url":"https://api.github.com/repos/GowthamShanmugam/commons/branches{/branch}","tags_url":"https://api.github.com/repos/GowthamShanmugam/commons/tags","blobs_url":"https://api.github.com/repos/GowthamShanmugam/commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GowthamShanmugam/commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GowthamShanmugam/commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/GowthamShanmugam/commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GowthamShanmugam/commons/statuses/{sha}","languages_url":"https://api.github.com/repos/GowthamShanmugam/commons/languages","stargazers_url":"https://api.github.com/repos/GowthamShanmugam/commons/stargazers","contributors_url":"https://api.github.com/repos/GowthamShanmugam/commons/contributors","subscribers_url":"https://api.github.com/repos/GowthamShanmugam/commons/subscribers","subscription_url":"https://api.github.com/repos/GowthamShanmugam/commons/subscription","commits_url":"https://api.github.com/repos/GowthamShanmugam/commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/GowthamShanmugam/commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/GowthamShanmugam/commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/GowthamShanmugam/commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/GowthamShanmugam/commons/contents/{+path}","compare_url":"https://api.github.com/repos/GowthamShanmugam/commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GowthamShanmugam/commons/merges","archive_url":"https://api.github.com/repos/GowthamShanmugam/commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GowthamShanmugam/commons/downloads","issues_url":"https://api.github.com/repos/GowthamShanmugam/commons/issues{/number}","pulls_url":"https://api.github.com/repos/GowthamShanmugam/commons/pulls{/number}","milestones_url":"https://api.github.com/repos/GowthamShanmugam/commons/milestones{/number}","notifications_url":"https://api.github.com/repos/GowthamShanmugam/commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GowthamShanmugam/commons/labels{/name}","releases_url":"https://api.github.com/repos/GowthamShanmugam/commons/releases{/id}","deployments_url":"https://api.github.com/repos/GowthamShanmugam/commons/deployments","created_at":"2017-02-16T14:30:41Z","updated_at":"2017-02-16T14:30:43Z","pushed_at":"2017-03-24T06:53:32Z","git_url":"git://github.com/GowthamShanmugam/commons.git","ssh_url":"git@github.com:GowthamShanmugam/commons.git","clone_url":"https://github.com/GowthamShanmugam/commons.git","svn_url":"https://github.com/GowthamShanmugam/commons","homepage":"http://www.tendrl.org","size":505,"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":"develop"}},"base":{"label":"Tendrl:develop","ref":"develop","sha":"9568ce12b758d840c7ad92c7cbefe87a12b83b16","user":{"login":"Tendrl","id":19151627,"avatar_url":"https://avatars3.githubusercontent.com/u/19151627?v=3","gravatar_id":"","url":"https://api.github.com/users/Tendrl","html_url":"https://github.com/Tendrl","followers_url":"https://api.github.com/users/Tendrl/followers","following_url":"https://api.github.com/users/Tendrl/following{/other_user}","gists_url":"https://api.github.com/users/Tendrl/gists{/gist_id}","starred_url":"https://api.github.com/users/Tendrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tendrl/subscriptions","organizations_url":"https://api.github.com/users/Tendrl/orgs","repos_url":"https://api.github.com/users/Tendrl/repos","events_url":"https://api.github.com/users/Tendrl/events{/privacy}","received_events_url":"https://api.github.com/users/Tendrl/received_events","type":"Organization","site_admin":false},"repo":{"id":64727947,"name":"commons","full_name":"Tendrl/commons","owner":{"login":"Tendrl","id":19151627,"avatar_url":"https://avatars3.githubusercontent.com/u/19151627?v=3","gravatar_id":"","url":"https://api.github.com/users/Tendrl","html_url":"https://github.com/Tendrl","followers_url":"https://api.github.com/users/Tendrl/followers","following_url":"https://api.github.com/users/Tendrl/following{/other_user}","gists_url":"https://api.github.com/users/Tendrl/gists{/gist_id}","starred_url":"https://api.github.com/users/Tendrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tendrl/subscriptions","organizations_url":"https://api.github.com/users/Tendrl/orgs","repos_url":"https://api.github.com/users/Tendrl/repos","events_url":"https://api.github.com/users/Tendrl/events{/privacy}","received_events_url":"https://api.github.com/users/Tendrl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tendrl/commons","description":"Common code usable by all Tendrl components","fork":false,"url":"https://api.github.com/repos/Tendrl/commons","forks_url":"https://api.github.com/repos/Tendrl/commons/forks","keys_url":"https://api.github.com/repos/Tendrl/commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tendrl/commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tendrl/commons/teams","hooks_url":"https://api.github.com/repos/Tendrl/commons/hooks","issue_events_url":"https://api.github.com/repos/Tendrl/commons/issues/events{/number}","events_url":"https://api.github.com/repos/Tendrl/commons/events","assignees_url":"https://api.github.com/repos/Tendrl/commons/assignees{/user}","branches_url":"https://api.github.com/repos/Tendrl/commons/branches{/branch}","tags_url":"https://api.github.com/repos/Tendrl/commons/tags","blobs_url":"https://api.github.com/repos/Tendrl/commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tendrl/commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tendrl/commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tendrl/commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tendrl/commons/statuses/{sha}","languages_url":"https://api.github.com/repos/Tendrl/commons/languages","stargazers_url":"https://api.github.com/repos/Tendrl/commons/stargazers","contributors_url":"https://api.github.com/repos/Tendrl/commons/contributors","subscribers_url":"https://api.github.com/repos/Tendrl/commons/subscribers","subscription_url":"https://api.github.com/repos/Tendrl/commons/subscription","commits_url":"https://api.github.com/repos/Tendrl/commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tendrl/commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tendrl/commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tendrl/commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tendrl/commons/contents/{+path}","compare_url":"https://api.github.com/repos/Tendrl/commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tendrl/commons/merges","archive_url":"https://api.github.com/repos/Tendrl/commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tendrl/commons/downloads","issues_url":"https://api.github.com/repos/Tendrl/commons/issues{/number}","pulls_url":"https://api.github.com/repos/Tendrl/commons/pulls{/number}","milestones_url":"https://api.github.com/repos/Tendrl/commons/milestones{/number}","notifications_url":"https://api.github.com/repos/Tendrl/commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tendrl/commons/labels{/name}","releases_url":"https://api.github.com/repos/Tendrl/commons/releases{/id}","deployments_url":"https://api.github.com/repos/Tendrl/commons/deployments","created_at":"2016-08-02T05:49:44Z","updated_at":"2017-03-16T14:33:34Z","pushed_at":"2017-03-24T07:28:08Z","git_url":"git://github.com/Tendrl/commons.git","ssh_url":"git@github.com:Tendrl/commons.git","clone_url":"https://github.com/Tendrl/commons.git","svn_url":"https://github.com/Tendrl/commons","homepage":"http://www.tendrl.org","size":497,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":21,"forks":17,"open_issues":21,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/297"},"html":{"href":"https://github.com/Tendrl/commons/pull/297"},"issue":{"href":"https://api.github.com/repos/Tendrl/commons/issues/297"},"comments":{"href":"https://api.github.com/repos/Tendrl/commons/issues/297/comments"},"review_comments":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/297/comments"},"review_comment":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/297/commits"},"statuses":{"href":"https://api.github.com/repos/Tendrl/commons/statuses/c3e68d0f3314efcb562d0e8c71a980de668d5f49"}}}}
{"actor":{"display_login":"r0h4n"}}