{"action":"opened","number":2187,"pull_request":{"url":"https://api.github.com/repos/influxdata/telegraf/pulls/2187","id":98838885,"html_url":"https://github.com/influxdata/telegraf/pull/2187","diff_url":"https://github.com/influxdata/telegraf/pull/2187.diff","patch_url":"https://github.com/influxdata/telegraf/pull/2187.patch","issue_url":"https://api.github.com/repos/influxdata/telegraf/issues/2187","number":2187,"state":"open","locked":false,"title":"Fix for loop over value array range issue.","user":{"login":"wolfeidau","id":50636,"avatar_url":"https://avatars.githubusercontent.com/u/50636?v=3","gravatar_id":"","url":"https://api.github.com/users/wolfeidau","html_url":"https://github.com/wolfeidau","followers_url":"https://api.github.com/users/wolfeidau/followers","following_url":"https://api.github.com/users/wolfeidau/following{/other_user}","gists_url":"https://api.github.com/users/wolfeidau/gists{/gist_id}","starred_url":"https://api.github.com/users/wolfeidau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolfeidau/subscriptions","organizations_url":"https://api.github.com/users/wolfeidau/orgs","repos_url":"https://api.github.com/users/wolfeidau/repos","events_url":"https://api.github.com/users/wolfeidau/events{/privacy}","received_events_url":"https://api.github.com/users/wolfeidau/received_events","type":"User","site_admin":false},"body":"### Required for all PRs:\r\n\r\n- [x] Sign [CLA](https://influxdata.com/community/cla/) (if not already signed)\r\n\r\nThis loop is assigning a value to p then creating a pointer to it, as the value of p is switched for each loop iteration the result is all the pointers point to the last item.\r\n\r\nThis results in the value of the \"device\" in the disks plugin being the same as the last partition device. see https://github.com/Versent/telegraf/blob/fix_disk_by_value_loop/plugins/inputs/system/disk.go#L57\r\n\r\n\r\n","created_at":"2016-12-20T22:36:28Z","updated_at":"2016-12-20T22:36:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/influxdata/telegraf/pulls/2187/commits","review_comments_url":"https://api.github.com/repos/influxdata/telegraf/pulls/2187/comments","review_comment_url":"https://api.github.com/repos/influxdata/telegraf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influxdata/telegraf/issues/2187/comments","statuses_url":"https://api.github.com/repos/influxdata/telegraf/statuses/1d97bba154ab78d3b43cbb77000b31cb7cd96c20","head":{"label":"Versent:fix_disk_by_value_loop","ref":"fix_disk_by_value_loop","sha":"1d97bba154ab78d3b43cbb77000b31cb7cd96c20","user":{"login":"Versent","id":11023632,"avatar_url":"https://avatars.githubusercontent.com/u/11023632?v=3","gravatar_id":"","url":"https://api.github.com/users/Versent","html_url":"https://github.com/Versent","followers_url":"https://api.github.com/users/Versent/followers","following_url":"https://api.github.com/users/Versent/following{/other_user}","gists_url":"https://api.github.com/users/Versent/gists{/gist_id}","starred_url":"https://api.github.com/users/Versent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Versent/subscriptions","organizations_url":"https://api.github.com/users/Versent/orgs","repos_url":"https://api.github.com/users/Versent/repos","events_url":"https://api.github.com/users/Versent/events{/privacy}","received_events_url":"https://api.github.com/users/Versent/received_events","type":"Organization","site_admin":false},"repo":{"id":67748933,"name":"telegraf","full_name":"Versent/telegraf","owner":{"login":"Versent","id":11023632,"avatar_url":"https://avatars.githubusercontent.com/u/11023632?v=3","gravatar_id":"","url":"https://api.github.com/users/Versent","html_url":"https://github.com/Versent","followers_url":"https://api.github.com/users/Versent/followers","following_url":"https://api.github.com/users/Versent/following{/other_user}","gists_url":"https://api.github.com/users/Versent/gists{/gist_id}","starred_url":"https://api.github.com/users/Versent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Versent/subscriptions","organizations_url":"https://api.github.com/users/Versent/orgs","repos_url":"https://api.github.com/users/Versent/repos","events_url":"https://api.github.com/users/Versent/events{/privacy}","received_events_url":"https://api.github.com/users/Versent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Versent/telegraf","description":"The plugin-driven server agent for collecting & reporting metrics.","fork":true,"url":"https://api.github.com/repos/Versent/telegraf","forks_url":"https://api.github.com/repos/Versent/telegraf/forks","keys_url":"https://api.github.com/repos/Versent/telegraf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Versent/telegraf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Versent/telegraf/teams","hooks_url":"https://api.github.com/repos/Versent/telegraf/hooks","issue_events_url":"https://api.github.com/repos/Versent/telegraf/issues/events{/number}","events_url":"https://api.github.com/repos/Versent/telegraf/events","assignees_url":"https://api.github.com/repos/Versent/telegraf/assignees{/user}","branches_url":"https://api.github.com/repos/Versent/telegraf/branches{/branch}","tags_url":"https://api.github.com/repos/Versent/telegraf/tags","blobs_url":"https://api.github.com/repos/Versent/telegraf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Versent/telegraf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Versent/telegraf/git/refs{/sha}","trees_url":"https://api.github.com/repos/Versent/telegraf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Versent/telegraf/statuses/{sha}","languages_url":"https://api.github.com/repos/Versent/telegraf/languages","stargazers_url":"https://api.github.com/repos/Versent/telegraf/stargazers","contributors_url":"https://api.github.com/repos/Versent/telegraf/contributors","subscribers_url":"https://api.github.com/repos/Versent/telegraf/subscribers","subscription_url":"https://api.github.com/repos/Versent/telegraf/subscription","commits_url":"https://api.github.com/repos/Versent/telegraf/commits{/sha}","git_commits_url":"https://api.github.com/repos/Versent/telegraf/git/commits{/sha}","comments_url":"https://api.github.com/repos/Versent/telegraf/comments{/number}","issue_comment_url":"https://api.github.com/repos/Versent/telegraf/issues/comments{/number}","contents_url":"https://api.github.com/repos/Versent/telegraf/contents/{+path}","compare_url":"https://api.github.com/repos/Versent/telegraf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Versent/telegraf/merges","archive_url":"https://api.github.com/repos/Versent/telegraf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Versent/telegraf/downloads","issues_url":"https://api.github.com/repos/Versent/telegraf/issues{/number}","pulls_url":"https://api.github.com/repos/Versent/telegraf/pulls{/number}","milestones_url":"https://api.github.com/repos/Versent/telegraf/milestones{/number}","notifications_url":"https://api.github.com/repos/Versent/telegraf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Versent/telegraf/labels{/name}","releases_url":"https://api.github.com/repos/Versent/telegraf/releases{/id}","deployments_url":"https://api.github.com/repos/Versent/telegraf/deployments","created_at":"2016-09-08T23:48:19Z","updated_at":"2016-09-08T23:48:23Z","pushed_at":"2016-12-20T21:53:32Z","git_url":"git://github.com/Versent/telegraf.git","ssh_url":"git@github.com:Versent/telegraf.git","clone_url":"https://github.com/Versent/telegraf.git","svn_url":"https://github.com/Versent/telegraf","homepage":"","size":12020,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"influxdata:master","ref":"master","sha":"a9f03a72f5aadf198f8c4ef8a99513b0801c4050","user":{"login":"influxdata","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"repo":{"id":33258973,"name":"telegraf","full_name":"influxdata/telegraf","owner":{"login":"influxdata","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influxdata/telegraf","description":"The plugin-driven server agent for collecting & reporting metrics.","fork":false,"url":"https://api.github.com/repos/influxdata/telegraf","forks_url":"https://api.github.com/repos/influxdata/telegraf/forks","keys_url":"https://api.github.com/repos/influxdata/telegraf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdata/telegraf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdata/telegraf/teams","hooks_url":"https://api.github.com/repos/influxdata/telegraf/hooks","issue_events_url":"https://api.github.com/repos/influxdata/telegraf/issues/events{/number}","events_url":"https://api.github.com/repos/influxdata/telegraf/events","assignees_url":"https://api.github.com/repos/influxdata/telegraf/assignees{/user}","branches_url":"https://api.github.com/repos/influxdata/telegraf/branches{/branch}","tags_url":"https://api.github.com/repos/influxdata/telegraf/tags","blobs_url":"https://api.github.com/repos/influxdata/telegraf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdata/telegraf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdata/telegraf/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdata/telegraf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdata/telegraf/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdata/telegraf/languages","stargazers_url":"https://api.github.com/repos/influxdata/telegraf/stargazers","contributors_url":"https://api.github.com/repos/influxdata/telegraf/contributors","subscribers_url":"https://api.github.com/repos/influxdata/telegraf/subscribers","subscription_url":"https://api.github.com/repos/influxdata/telegraf/subscription","commits_url":"https://api.github.com/repos/influxdata/telegraf/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdata/telegraf/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdata/telegraf/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdata/telegraf/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdata/telegraf/contents/{+path}","compare_url":"https://api.github.com/repos/influxdata/telegraf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdata/telegraf/merges","archive_url":"https://api.github.com/repos/influxdata/telegraf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdata/telegraf/downloads","issues_url":"https://api.github.com/repos/influxdata/telegraf/issues{/number}","pulls_url":"https://api.github.com/repos/influxdata/telegraf/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdata/telegraf/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdata/telegraf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdata/telegraf/labels{/name}","releases_url":"https://api.github.com/repos/influxdata/telegraf/releases{/id}","deployments_url":"https://api.github.com/repos/influxdata/telegraf/deployments","created_at":"2015-04-01T16:28:44Z","updated_at":"2016-12-20T21:14:31Z","pushed_at":"2016-12-20T19:45:53Z","git_url":"git://github.com/influxdata/telegraf.git","ssh_url":"git@github.com:influxdata/telegraf.git","clone_url":"https://github.com/influxdata/telegraf.git","svn_url":"https://github.com/influxdata/telegraf","homepage":"","size":12155,"stargazers_count":2156,"watchers_count":2156,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":768,"mirror_url":null,"open_issues_count":290,"forks":768,"open_issues":290,"watchers":2156,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/2187"},"html":{"href":"https://github.com/influxdata/telegraf/pull/2187"},"issue":{"href":"https://api.github.com/repos/influxdata/telegraf/issues/2187"},"comments":{"href":"https://api.github.com/repos/influxdata/telegraf/issues/2187/comments"},"review_comments":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/2187/comments"},"review_comment":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/2187/commits"},"statuses":{"href":"https://api.github.com/repos/influxdata/telegraf/statuses/1d97bba154ab78d3b43cbb77000b31cb7cd96c20"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"wolfeidau"}}