{"action":"created","comment":{"url":"https://api.github.com/repos/vmware/liota/pulls/comments/98195662","pull_request_review_id":18831033,"id":98195662,"diff_hunk":"@@ -304,26 +289,11 @@ def store_reg_entity_details(self, entity_type, entity_name, reg_entity_id):\n             f.close()\n \n     def store_edge_system_uuid(self, entity_name, reg_entity_id):\n-        config = ConfigParser.RawConfigParser()\n-        fullPath = LiotaConfigPath().get_liota_fullpath()\n-        if fullPath != '':\n-            try:\n-                if config.read(fullPath) != []:\n-                    try:\n-                        uuid_path = config.get('UUID_PATH', 'uuid_path')\n-                        uuid_config = ConfigParser.RawConfigParser()\n-                        uuid_config.optionxform = str\n-                        uuid_config.add_section('GATEWAY')\n-                        uuid_config.set('GATEWAY', 'uuid', reg_entity_id)\n-                        uuid_config.set('GATEWAY', 'name', entity_name)\n-                        with open(uuid_path, 'w') as configfile:\n-                            uuid_config.write(configfile)\n-                    except ConfigParser.ParsingError, err:\n-                        log.error('Could not open config file ' + err)\n-                else:\n-                    raise IOError('Could not open config file ' + fullPath)\n-            except IOError, err:\n-                log.error('Could not open config file')\n-        else:\n-            # missing config file\n-            log.warn('liota.conf file missing')\n+\tuuid_path = read_liota_config('UUID_PATH', 'uuid_path')","path":"liota/dccs/iotcc.py","position":80,"original_position":80,"commit_id":"f0708175b70a3a9c51b71269518babda1a9908af","original_commit_id":"f0708175b70a3a9c51b71269518babda1a9908af","user":{"login":"KohliDev","id":5468034,"avatar_url":"https://avatars.githubusercontent.com/u/5468034?v=3","gravatar_id":"","url":"https://api.github.com/users/KohliDev","html_url":"https://github.com/KohliDev","followers_url":"https://api.github.com/users/KohliDev/followers","following_url":"https://api.github.com/users/KohliDev/following{/other_user}","gists_url":"https://api.github.com/users/KohliDev/gists{/gist_id}","starred_url":"https://api.github.com/users/KohliDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KohliDev/subscriptions","organizations_url":"https://api.github.com/users/KohliDev/orgs","repos_url":"https://api.github.com/users/KohliDev/repos","events_url":"https://api.github.com/users/KohliDev/events{/privacy}","received_events_url":"https://api.github.com/users/KohliDev/received_events","type":"User","site_admin":false},"body":"Format the code","created_at":"2017-01-27T12:44:08Z","updated_at":"2017-01-27T12:44:09Z","html_url":"https://github.com/vmware/liota/pull/56#discussion_r98195662","pull_request_url":"https://api.github.com/repos/vmware/liota/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/vmware/liota/pulls/comments/98195662"},"html":{"href":"https://github.com/vmware/liota/pull/56#discussion_r98195662"},"pull_request":{"href":"https://api.github.com/repos/vmware/liota/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/vmware/liota/pulls/56","id":98330462,"html_url":"https://github.com/vmware/liota/pull/56","diff_url":"https://github.com/vmware/liota/pull/56.diff","patch_url":"https://github.com/vmware/liota/pull/56.patch","issue_url":"https://api.github.com/repos/vmware/liota/issues/56","number":56,"state":"open","locked":false,"title":"New utility method read_liota_config ","user":{"login":"ApurvaH","id":23447643,"avatar_url":"https://avatars.githubusercontent.com/u/23447643?v=3","gravatar_id":"","url":"https://api.github.com/users/ApurvaH","html_url":"https://github.com/ApurvaH","followers_url":"https://api.github.com/users/ApurvaH/followers","following_url":"https://api.github.com/users/ApurvaH/following{/other_user}","gists_url":"https://api.github.com/users/ApurvaH/gists{/gist_id}","starred_url":"https://api.github.com/users/ApurvaH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ApurvaH/subscriptions","organizations_url":"https://api.github.com/users/ApurvaH/orgs","repos_url":"https://api.github.com/users/ApurvaH/repos","events_url":"https://api.github.com/users/ApurvaH/events{/privacy}","received_events_url":"https://api.github.com/users/ApurvaH/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-16T12:56:57Z","updated_at":"2017-01-27T12:44:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7d1e43480c3abfa94454495a7206c21612b7fd75","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vmware/liota/pulls/56/commits","review_comments_url":"https://api.github.com/repos/vmware/liota/pulls/56/comments","review_comment_url":"https://api.github.com/repos/vmware/liota/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vmware/liota/issues/56/comments","statuses_url":"https://api.github.com/repos/vmware/liota/statuses/f0708175b70a3a9c51b71269518babda1a9908af","head":{"label":"ApurvaH:read_liota_config_branch","ref":"read_liota_config_branch","sha":"f0708175b70a3a9c51b71269518babda1a9908af","user":{"login":"ApurvaH","id":23447643,"avatar_url":"https://avatars.githubusercontent.com/u/23447643?v=3","gravatar_id":"","url":"https://api.github.com/users/ApurvaH","html_url":"https://github.com/ApurvaH","followers_url":"https://api.github.com/users/ApurvaH/followers","following_url":"https://api.github.com/users/ApurvaH/following{/other_user}","gists_url":"https://api.github.com/users/ApurvaH/gists{/gist_id}","starred_url":"https://api.github.com/users/ApurvaH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ApurvaH/subscriptions","organizations_url":"https://api.github.com/users/ApurvaH/orgs","repos_url":"https://api.github.com/users/ApurvaH/repos","events_url":"https://api.github.com/users/ApurvaH/events{/privacy}","received_events_url":"https://api.github.com/users/ApurvaH/received_events","type":"User","site_admin":false},"repo":{"id":73681405,"name":"liota","full_name":"ApurvaH/liota","owner":{"login":"ApurvaH","id":23447643,"avatar_url":"https://avatars.githubusercontent.com/u/23447643?v=3","gravatar_id":"","url":"https://api.github.com/users/ApurvaH","html_url":"https://github.com/ApurvaH","followers_url":"https://api.github.com/users/ApurvaH/followers","following_url":"https://api.github.com/users/ApurvaH/following{/other_user}","gists_url":"https://api.github.com/users/ApurvaH/gists{/gist_id}","starred_url":"https://api.github.com/users/ApurvaH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ApurvaH/subscriptions","organizations_url":"https://api.github.com/users/ApurvaH/orgs","repos_url":"https://api.github.com/users/ApurvaH/repos","events_url":"https://api.github.com/users/ApurvaH/events{/privacy}","received_events_url":"https://api.github.com/users/ApurvaH/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ApurvaH/liota","description":null,"fork":true,"url":"https://api.github.com/repos/ApurvaH/liota","forks_url":"https://api.github.com/repos/ApurvaH/liota/forks","keys_url":"https://api.github.com/repos/ApurvaH/liota/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ApurvaH/liota/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ApurvaH/liota/teams","hooks_url":"https://api.github.com/repos/ApurvaH/liota/hooks","issue_events_url":"https://api.github.com/repos/ApurvaH/liota/issues/events{/number}","events_url":"https://api.github.com/repos/ApurvaH/liota/events","assignees_url":"https://api.github.com/repos/ApurvaH/liota/assignees{/user}","branches_url":"https://api.github.com/repos/ApurvaH/liota/branches{/branch}","tags_url":"https://api.github.com/repos/ApurvaH/liota/tags","blobs_url":"https://api.github.com/repos/ApurvaH/liota/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ApurvaH/liota/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ApurvaH/liota/git/refs{/sha}","trees_url":"https://api.github.com/repos/ApurvaH/liota/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ApurvaH/liota/statuses/{sha}","languages_url":"https://api.github.com/repos/ApurvaH/liota/languages","stargazers_url":"https://api.github.com/repos/ApurvaH/liota/stargazers","contributors_url":"https://api.github.com/repos/ApurvaH/liota/contributors","subscribers_url":"https://api.github.com/repos/ApurvaH/liota/subscribers","subscription_url":"https://api.github.com/repos/ApurvaH/liota/subscription","commits_url":"https://api.github.com/repos/ApurvaH/liota/commits{/sha}","git_commits_url":"https://api.github.com/repos/ApurvaH/liota/git/commits{/sha}","comments_url":"https://api.github.com/repos/ApurvaH/liota/comments{/number}","issue_comment_url":"https://api.github.com/repos/ApurvaH/liota/issues/comments{/number}","contents_url":"https://api.github.com/repos/ApurvaH/liota/contents/{+path}","compare_url":"https://api.github.com/repos/ApurvaH/liota/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ApurvaH/liota/merges","archive_url":"https://api.github.com/repos/ApurvaH/liota/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ApurvaH/liota/downloads","issues_url":"https://api.github.com/repos/ApurvaH/liota/issues{/number}","pulls_url":"https://api.github.com/repos/ApurvaH/liota/pulls{/number}","milestones_url":"https://api.github.com/repos/ApurvaH/liota/milestones{/number}","notifications_url":"https://api.github.com/repos/ApurvaH/liota/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ApurvaH/liota/labels{/name}","releases_url":"https://api.github.com/repos/ApurvaH/liota/releases{/id}","deployments_url":"https://api.github.com/repos/ApurvaH/liota/deployments","created_at":"2016-11-14T08:05:14Z","updated_at":"2016-11-14T08:05:15Z","pushed_at":"2017-01-27T12:01:04Z","git_url":"git://github.com/ApurvaH/liota.git","ssh_url":"git@github.com:ApurvaH/liota.git","clone_url":"https://github.com/ApurvaH/liota.git","svn_url":"https://github.com/ApurvaH/liota","homepage":null,"size":391,"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":"vmware:master","ref":"master","sha":"b260837b0b4aaa571bd0b6d7159061b3221f7d2f","user":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"repo":{"id":51544954,"name":"liota","full_name":"vmware/liota","owner":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vmware/liota","description":null,"fork":false,"url":"https://api.github.com/repos/vmware/liota","forks_url":"https://api.github.com/repos/vmware/liota/forks","keys_url":"https://api.github.com/repos/vmware/liota/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vmware/liota/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vmware/liota/teams","hooks_url":"https://api.github.com/repos/vmware/liota/hooks","issue_events_url":"https://api.github.com/repos/vmware/liota/issues/events{/number}","events_url":"https://api.github.com/repos/vmware/liota/events","assignees_url":"https://api.github.com/repos/vmware/liota/assignees{/user}","branches_url":"https://api.github.com/repos/vmware/liota/branches{/branch}","tags_url":"https://api.github.com/repos/vmware/liota/tags","blobs_url":"https://api.github.com/repos/vmware/liota/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vmware/liota/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vmware/liota/git/refs{/sha}","trees_url":"https://api.github.com/repos/vmware/liota/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vmware/liota/statuses/{sha}","languages_url":"https://api.github.com/repos/vmware/liota/languages","stargazers_url":"https://api.github.com/repos/vmware/liota/stargazers","contributors_url":"https://api.github.com/repos/vmware/liota/contributors","subscribers_url":"https://api.github.com/repos/vmware/liota/subscribers","subscription_url":"https://api.github.com/repos/vmware/liota/subscription","commits_url":"https://api.github.com/repos/vmware/liota/commits{/sha}","git_commits_url":"https://api.github.com/repos/vmware/liota/git/commits{/sha}","comments_url":"https://api.github.com/repos/vmware/liota/comments{/number}","issue_comment_url":"https://api.github.com/repos/vmware/liota/issues/comments{/number}","contents_url":"https://api.github.com/repos/vmware/liota/contents/{+path}","compare_url":"https://api.github.com/repos/vmware/liota/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vmware/liota/merges","archive_url":"https://api.github.com/repos/vmware/liota/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vmware/liota/downloads","issues_url":"https://api.github.com/repos/vmware/liota/issues{/number}","pulls_url":"https://api.github.com/repos/vmware/liota/pulls{/number}","milestones_url":"https://api.github.com/repos/vmware/liota/milestones{/number}","notifications_url":"https://api.github.com/repos/vmware/liota/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vmware/liota/labels{/name}","releases_url":"https://api.github.com/repos/vmware/liota/releases{/id}","deployments_url":"https://api.github.com/repos/vmware/liota/deployments","created_at":"2016-02-11T20:31:26Z","updated_at":"2017-01-24T22:12:20Z","pushed_at":"2017-01-27T06:48:35Z","git_url":"git://github.com/vmware/liota.git","ssh_url":"git@github.com:vmware/liota.git","clone_url":"https://github.com/vmware/liota.git","svn_url":"https://github.com/vmware/liota","homepage":null,"size":411,"stargazers_count":199,"watchers_count":199,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":63,"mirror_url":null,"open_issues_count":19,"forks":63,"open_issues":19,"watchers":199,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vmware/liota/pulls/56"},"html":{"href":"https://github.com/vmware/liota/pull/56"},"issue":{"href":"https://api.github.com/repos/vmware/liota/issues/56"},"comments":{"href":"https://api.github.com/repos/vmware/liota/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/vmware/liota/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/vmware/liota/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vmware/liota/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/vmware/liota/statuses/f0708175b70a3a9c51b71269518babda1a9908af"}}}}
{"actor":{"display_login":"KohliDev"}}