{"action":"created","comment":{"url":"https://api.github.com/repos/internap/virtualpdu/pulls/comments/77647097","id":77647097,"diff_hunk":"@@ -27,11 +27,13 @@ def __init__(self, driver, mapping):\n     def pdu_outlet_state_changed(self, name, outlet_number, state):\n         self.logger.info(\n             \"PDU '{name}', outlet '{outlet_number}' has new state: '{state}'\".\n-            format(name=name, outlet_number=outlet_number, state=state))\n+                format(name=name, outlet_number=outlet_number, state=state))\n         try:\n             server_name = self._get_server_name(name, outlet_number)\n \n-            self.logger.info(\"Found server '{0}'\".format(server_name))\n+            self.logger.debug(\"Found server '{0}' on PDU '{1}', \"","path":"virtualpdu/core.py","position":10,"original_position":10,"commit_id":"0d47030eef2457cb6551083c99ff02ccfa7f0a16","original_commit_id":"0d47030eef2457cb6551083c99ff02ccfa7f0a16","user":{"login":"lindycoder","id":12926519,"avatar_url":"https://avatars.githubusercontent.com/u/12926519?v=3","gravatar_id":"","url":"https://api.github.com/users/lindycoder","html_url":"https://github.com/lindycoder","followers_url":"https://api.github.com/users/lindycoder/followers","following_url":"https://api.github.com/users/lindycoder/following{/other_user}","gists_url":"https://api.github.com/users/lindycoder/gists{/gist_id}","starred_url":"https://api.github.com/users/lindycoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lindycoder/subscriptions","organizations_url":"https://api.github.com/users/lindycoder/orgs","repos_url":"https://api.github.com/users/lindycoder/repos","events_url":"https://api.github.com/users/lindycoder/events{/privacy}","received_events_url":"https://api.github.com/users/lindycoder/received_events","type":"User","site_admin":false},"body":"line 29 uses named params, and this uses ordinal params, you guys should stick to 1 standard :)  i suggest {} :P","created_at":"2016-09-06T14:35:02Z","updated_at":"2016-09-06T14:35:02Z","html_url":"https://github.com/internap/virtualpdu/pull/18#discussion_r77647097","pull_request_url":"https://api.github.com/repos/internap/virtualpdu/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/internap/virtualpdu/pulls/comments/77647097"},"html":{"href":"https://github.com/internap/virtualpdu/pull/18#discussion_r77647097"},"pull_request":{"href":"https://api.github.com/repos/internap/virtualpdu/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/internap/virtualpdu/pulls/18","id":83862714,"html_url":"https://github.com/internap/virtualpdu/pull/18","diff_url":"https://github.com/internap/virtualpdu/pull/18.diff","patch_url":"https://github.com/internap/virtualpdu/pull/18.patch","issue_url":"https://api.github.com/repos/internap/virtualpdu/issues/18","number":18,"state":"open","locked":false,"title":"Handle SIGINT correctly on Python 2.7","user":{"login":"mat128","id":234168,"avatar_url":"https://avatars.githubusercontent.com/u/234168?v=3","gravatar_id":"","url":"https://api.github.com/users/mat128","html_url":"https://github.com/mat128","followers_url":"https://api.github.com/users/mat128/followers","following_url":"https://api.github.com/users/mat128/following{/other_user}","gists_url":"https://api.github.com/users/mat128/gists{/gist_id}","starred_url":"https://api.github.com/users/mat128/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mat128/subscriptions","organizations_url":"https://api.github.com/users/mat128/orgs","repos_url":"https://api.github.com/users/mat128/repos","events_url":"https://api.github.com/users/mat128/events{/privacy}","received_events_url":"https://api.github.com/users/mat128/received_events","type":"User","site_admin":false},"body":"Currently, VirtualPDU is unstoppable on Python 2.7. Correct this by handling KeyboardInterrupt events in the main thread.\r\n\r\nCloses issues #14 and #16","created_at":"2016-09-02T20:50:55Z","updated_at":"2016-09-06T14:35:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abe892c5caf81fda7e97d6a58f2485661e2c5263","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/internap/virtualpdu/pulls/18/commits","review_comments_url":"https://api.github.com/repos/internap/virtualpdu/pulls/18/comments","review_comment_url":"https://api.github.com/repos/internap/virtualpdu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/internap/virtualpdu/issues/18/comments","statuses_url":"https://api.github.com/repos/internap/virtualpdu/statuses/0d47030eef2457cb6551083c99ff02ccfa7f0a16","head":{"label":"mat128:sigint","ref":"sigint","sha":"0d47030eef2457cb6551083c99ff02ccfa7f0a16","user":{"login":"mat128","id":234168,"avatar_url":"https://avatars.githubusercontent.com/u/234168?v=3","gravatar_id":"","url":"https://api.github.com/users/mat128","html_url":"https://github.com/mat128","followers_url":"https://api.github.com/users/mat128/followers","following_url":"https://api.github.com/users/mat128/following{/other_user}","gists_url":"https://api.github.com/users/mat128/gists{/gist_id}","starred_url":"https://api.github.com/users/mat128/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mat128/subscriptions","organizations_url":"https://api.github.com/users/mat128/orgs","repos_url":"https://api.github.com/users/mat128/repos","events_url":"https://api.github.com/users/mat128/events{/privacy}","received_events_url":"https://api.github.com/users/mat128/received_events","type":"User","site_admin":false},"repo":{"id":65499834,"name":"virtualpdu","full_name":"mat128/virtualpdu","owner":{"login":"mat128","id":234168,"avatar_url":"https://avatars.githubusercontent.com/u/234168?v=3","gravatar_id":"","url":"https://api.github.com/users/mat128","html_url":"https://github.com/mat128","followers_url":"https://api.github.com/users/mat128/followers","following_url":"https://api.github.com/users/mat128/following{/other_user}","gists_url":"https://api.github.com/users/mat128/gists{/gist_id}","starred_url":"https://api.github.com/users/mat128/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mat128/subscriptions","organizations_url":"https://api.github.com/users/mat128/orgs","repos_url":"https://api.github.com/users/mat128/repos","events_url":"https://api.github.com/users/mat128/events{/privacy}","received_events_url":"https://api.github.com/users/mat128/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mat128/virtualpdu","description":"A virtual power distribution unit (PDU) for controlling libvirt virtual machines via SNMP commands.","fork":true,"url":"https://api.github.com/repos/mat128/virtualpdu","forks_url":"https://api.github.com/repos/mat128/virtualpdu/forks","keys_url":"https://api.github.com/repos/mat128/virtualpdu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mat128/virtualpdu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mat128/virtualpdu/teams","hooks_url":"https://api.github.com/repos/mat128/virtualpdu/hooks","issue_events_url":"https://api.github.com/repos/mat128/virtualpdu/issues/events{/number}","events_url":"https://api.github.com/repos/mat128/virtualpdu/events","assignees_url":"https://api.github.com/repos/mat128/virtualpdu/assignees{/user}","branches_url":"https://api.github.com/repos/mat128/virtualpdu/branches{/branch}","tags_url":"https://api.github.com/repos/mat128/virtualpdu/tags","blobs_url":"https://api.github.com/repos/mat128/virtualpdu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mat128/virtualpdu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mat128/virtualpdu/git/refs{/sha}","trees_url":"https://api.github.com/repos/mat128/virtualpdu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mat128/virtualpdu/statuses/{sha}","languages_url":"https://api.github.com/repos/mat128/virtualpdu/languages","stargazers_url":"https://api.github.com/repos/mat128/virtualpdu/stargazers","contributors_url":"https://api.github.com/repos/mat128/virtualpdu/contributors","subscribers_url":"https://api.github.com/repos/mat128/virtualpdu/subscribers","subscription_url":"https://api.github.com/repos/mat128/virtualpdu/subscription","commits_url":"https://api.github.com/repos/mat128/virtualpdu/commits{/sha}","git_commits_url":"https://api.github.com/repos/mat128/virtualpdu/git/commits{/sha}","comments_url":"https://api.github.com/repos/mat128/virtualpdu/comments{/number}","issue_comment_url":"https://api.github.com/repos/mat128/virtualpdu/issues/comments{/number}","contents_url":"https://api.github.com/repos/mat128/virtualpdu/contents/{+path}","compare_url":"https://api.github.com/repos/mat128/virtualpdu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mat128/virtualpdu/merges","archive_url":"https://api.github.com/repos/mat128/virtualpdu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mat128/virtualpdu/downloads","issues_url":"https://api.github.com/repos/mat128/virtualpdu/issues{/number}","pulls_url":"https://api.github.com/repos/mat128/virtualpdu/pulls{/number}","milestones_url":"https://api.github.com/repos/mat128/virtualpdu/milestones{/number}","notifications_url":"https://api.github.com/repos/mat128/virtualpdu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mat128/virtualpdu/labels{/name}","releases_url":"https://api.github.com/repos/mat128/virtualpdu/releases{/id}","deployments_url":"https://api.github.com/repos/mat128/virtualpdu/deployments","created_at":"2016-08-11T20:34:31Z","updated_at":"2016-08-11T20:34:32Z","pushed_at":"2016-09-06T14:24:21Z","git_url":"git://github.com/mat128/virtualpdu.git","ssh_url":"git@github.com:mat128/virtualpdu.git","clone_url":"https://github.com/mat128/virtualpdu.git","svn_url":"https://github.com/mat128/virtualpdu","homepage":null,"size":61,"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":"internap:master","ref":"master","sha":"20e345d1b4af07334b5352c1574a7e6611199fa6","user":{"login":"internap","id":13888621,"avatar_url":"https://avatars.githubusercontent.com/u/13888621?v=3","gravatar_id":"","url":"https://api.github.com/users/internap","html_url":"https://github.com/internap","followers_url":"https://api.github.com/users/internap/followers","following_url":"https://api.github.com/users/internap/following{/other_user}","gists_url":"https://api.github.com/users/internap/gists{/gist_id}","starred_url":"https://api.github.com/users/internap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/internap/subscriptions","organizations_url":"https://api.github.com/users/internap/orgs","repos_url":"https://api.github.com/users/internap/repos","events_url":"https://api.github.com/users/internap/events{/privacy}","received_events_url":"https://api.github.com/users/internap/received_events","type":"Organization","site_admin":false},"repo":{"id":61335019,"name":"virtualpdu","full_name":"internap/virtualpdu","owner":{"login":"internap","id":13888621,"avatar_url":"https://avatars.githubusercontent.com/u/13888621?v=3","gravatar_id":"","url":"https://api.github.com/users/internap","html_url":"https://github.com/internap","followers_url":"https://api.github.com/users/internap/followers","following_url":"https://api.github.com/users/internap/following{/other_user}","gists_url":"https://api.github.com/users/internap/gists{/gist_id}","starred_url":"https://api.github.com/users/internap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/internap/subscriptions","organizations_url":"https://api.github.com/users/internap/orgs","repos_url":"https://api.github.com/users/internap/repos","events_url":"https://api.github.com/users/internap/events{/privacy}","received_events_url":"https://api.github.com/users/internap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/internap/virtualpdu","description":"A virtual power distribution unit (PDU) for controlling libvirt virtual machines via SNMP commands.","fork":false,"url":"https://api.github.com/repos/internap/virtualpdu","forks_url":"https://api.github.com/repos/internap/virtualpdu/forks","keys_url":"https://api.github.com/repos/internap/virtualpdu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/internap/virtualpdu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/internap/virtualpdu/teams","hooks_url":"https://api.github.com/repos/internap/virtualpdu/hooks","issue_events_url":"https://api.github.com/repos/internap/virtualpdu/issues/events{/number}","events_url":"https://api.github.com/repos/internap/virtualpdu/events","assignees_url":"https://api.github.com/repos/internap/virtualpdu/assignees{/user}","branches_url":"https://api.github.com/repos/internap/virtualpdu/branches{/branch}","tags_url":"https://api.github.com/repos/internap/virtualpdu/tags","blobs_url":"https://api.github.com/repos/internap/virtualpdu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/internap/virtualpdu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/internap/virtualpdu/git/refs{/sha}","trees_url":"https://api.github.com/repos/internap/virtualpdu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/internap/virtualpdu/statuses/{sha}","languages_url":"https://api.github.com/repos/internap/virtualpdu/languages","stargazers_url":"https://api.github.com/repos/internap/virtualpdu/stargazers","contributors_url":"https://api.github.com/repos/internap/virtualpdu/contributors","subscribers_url":"https://api.github.com/repos/internap/virtualpdu/subscribers","subscription_url":"https://api.github.com/repos/internap/virtualpdu/subscription","commits_url":"https://api.github.com/repos/internap/virtualpdu/commits{/sha}","git_commits_url":"https://api.github.com/repos/internap/virtualpdu/git/commits{/sha}","comments_url":"https://api.github.com/repos/internap/virtualpdu/comments{/number}","issue_comment_url":"https://api.github.com/repos/internap/virtualpdu/issues/comments{/number}","contents_url":"https://api.github.com/repos/internap/virtualpdu/contents/{+path}","compare_url":"https://api.github.com/repos/internap/virtualpdu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/internap/virtualpdu/merges","archive_url":"https://api.github.com/repos/internap/virtualpdu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/internap/virtualpdu/downloads","issues_url":"https://api.github.com/repos/internap/virtualpdu/issues{/number}","pulls_url":"https://api.github.com/repos/internap/virtualpdu/pulls{/number}","milestones_url":"https://api.github.com/repos/internap/virtualpdu/milestones{/number}","notifications_url":"https://api.github.com/repos/internap/virtualpdu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/internap/virtualpdu/labels{/name}","releases_url":"https://api.github.com/repos/internap/virtualpdu/releases{/id}","deployments_url":"https://api.github.com/repos/internap/virtualpdu/deployments","created_at":"2016-06-17T00:40:38Z","updated_at":"2016-08-11T13:45:20Z","pushed_at":"2016-09-06T14:24:35Z","git_url":"git://github.com/internap/virtualpdu.git","ssh_url":"git@github.com:internap/virtualpdu.git","clone_url":"https://github.com/internap/virtualpdu.git","svn_url":"https://github.com/internap/virtualpdu","homepage":null,"size":65,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":8,"forks":3,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/internap/virtualpdu/pulls/18"},"html":{"href":"https://github.com/internap/virtualpdu/pull/18"},"issue":{"href":"https://api.github.com/repos/internap/virtualpdu/issues/18"},"comments":{"href":"https://api.github.com/repos/internap/virtualpdu/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/internap/virtualpdu/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/internap/virtualpdu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/internap/virtualpdu/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/internap/virtualpdu/statuses/0d47030eef2457cb6551083c99ff02ccfa7f0a16"}}}}
{"actor":{"display_login":"lindycoder"}}