{"action":"created","comment":{"url":"https://api.github.com/repos/puppet-community/puppet-collectd/pulls/comments/42396847","id":42396847,"diff_hunk":"@@ -17,7 +17,11 @@\n <% unless @deletesets.nil? -%>\n   Deletesets <%= @deletesets %>\n <% end -%>\n-<% if @timerpercentile -%>\n+<% if @timerpercentile.kind_of?(Array) -%>\n+<% @timerpercentile.each do |p| -%>\n+  TimerPercentile <%= p %>\n+<% end -%>\n+<% elsif @timerpercentile -%>","path":"templates/plugin/statsd.conf.erb","position":9,"original_position":9,"commit_id":"cf41bbad72814ba94336d1c6a602df008501a13b","original_commit_id":"cf41bbad72814ba94336d1c6a602df008501a13b","user":{"login":"igalic","id":497249,"avatar_url":"https://avatars.githubusercontent.com/u/497249?v=3","gravatar_id":"","url":"https://api.github.com/users/igalic","html_url":"https://github.com/igalic","followers_url":"https://api.github.com/users/igalic/followers","following_url":"https://api.github.com/users/igalic/following{/other_user}","gists_url":"https://api.github.com/users/igalic/gists{/gist_id}","starred_url":"https://api.github.com/users/igalic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igalic/subscriptions","organizations_url":"https://api.github.com/users/igalic/orgs","repos_url":"https://api.github.com/users/igalic/repos","events_url":"https://api.github.com/users/igalic/events{/privacy}","received_events_url":"https://api.github.com/users/igalic/received_events","type":"User","site_admin":false},"body":"why not just,\r\n```ruby\r\n<% [@timerpercentile].flatten.compact.each do |p| -%>\r\n  TimerPercentile <%= p %>\r\n<% end -%>\r\n```","created_at":"2015-10-19T16:59:02Z","updated_at":"2015-10-19T16:59:02Z","html_url":"https://github.com/puppet-community/puppet-collectd/pull/265#discussion_r42396847","pull_request_url":"https://api.github.com/repos/puppet-community/puppet-collectd/pulls/265","_links":{"self":{"href":"https://api.github.com/repos/puppet-community/puppet-collectd/pulls/comments/42396847"},"html":{"href":"https://github.com/puppet-community/puppet-collectd/pull/265#discussion_r42396847"},"pull_request":{"href":"https://api.github.com/repos/puppet-community/puppet-collectd/pulls/265"}}},"pull_request":{"url":"https://api.github.com/repos/puppet-community/puppet-collectd/pulls/265","id":34862175,"html_url":"https://github.com/puppet-community/puppet-collectd/pull/265","diff_url":"https://github.com/puppet-community/puppet-collectd/pull/265.diff","patch_url":"https://github.com/puppet-community/puppet-collectd/pull/265.patch","issue_url":"https://api.github.com/repos/puppet-community/puppet-collectd/issues/265","number":265,"state":"open","locked":false,"title":"allow for list of timerpercentiles","user":{"login":"nathanielc","id":3771906,"avatar_url":"https://avatars.githubusercontent.com/u/3771906?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielc","html_url":"https://github.com/nathanielc","followers_url":"https://api.github.com/users/nathanielc/followers","following_url":"https://api.github.com/users/nathanielc/following{/other_user}","gists_url":"https://api.github.com/users/nathanielc/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielc/subscriptions","organizations_url":"https://api.github.com/users/nathanielc/orgs","repos_url":"https://api.github.com/users/nathanielc/repos","events_url":"https://api.github.com/users/nathanielc/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielc/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-06T21:27:53Z","updated_at":"2015-10-19T16:59:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39a61a224f813f15654152d2a4be0afdc184f376","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppet-community/puppet-collectd/pulls/265/commits","review_comments_url":"https://api.github.com/repos/puppet-community/puppet-collectd/pulls/265/comments","review_comment_url":"https://api.github.com/repos/puppet-community/puppet-collectd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppet-community/puppet-collectd/issues/265/comments","statuses_url":"https://api.github.com/repos/puppet-community/puppet-collectd/statuses/cf41bbad72814ba94336d1c6a602df008501a13b","head":{"label":"qualtrics:master","ref":"master","sha":"cf41bbad72814ba94336d1c6a602df008501a13b","user":{"login":"qualtrics","id":1020327,"avatar_url":"https://avatars.githubusercontent.com/u/1020327?v=3","gravatar_id":"","url":"https://api.github.com/users/qualtrics","html_url":"https://github.com/qualtrics","followers_url":"https://api.github.com/users/qualtrics/followers","following_url":"https://api.github.com/users/qualtrics/following{/other_user}","gists_url":"https://api.github.com/users/qualtrics/gists{/gist_id}","starred_url":"https://api.github.com/users/qualtrics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qualtrics/subscriptions","organizations_url":"https://api.github.com/users/qualtrics/orgs","repos_url":"https://api.github.com/users/qualtrics/repos","events_url":"https://api.github.com/users/qualtrics/events{/privacy}","received_events_url":"https://api.github.com/users/qualtrics/received_events","type":"Organization","site_admin":false},"repo":{"id":35183263,"name":"puppet-module-collectd","full_name":"qualtrics/puppet-module-collectd","owner":{"login":"qualtrics","id":1020327,"avatar_url":"https://avatars.githubusercontent.com/u/1020327?v=3","gravatar_id":"","url":"https://api.github.com/users/qualtrics","html_url":"https://github.com/qualtrics","followers_url":"https://api.github.com/users/qualtrics/followers","following_url":"https://api.github.com/users/qualtrics/following{/other_user}","gists_url":"https://api.github.com/users/qualtrics/gists{/gist_id}","starred_url":"https://api.github.com/users/qualtrics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qualtrics/subscriptions","organizations_url":"https://api.github.com/users/qualtrics/orgs","repos_url":"https://api.github.com/users/qualtrics/repos","events_url":"https://api.github.com/users/qualtrics/events{/privacy}","received_events_url":"https://api.github.com/users/qualtrics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qualtrics/puppet-module-collectd","description":"Collectd module for Puppet","fork":true,"url":"https://api.github.com/repos/qualtrics/puppet-module-collectd","forks_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/forks","keys_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/teams","hooks_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/hooks","issue_events_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/issues/events{/number}","events_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/events","assignees_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/assignees{/user}","branches_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/branches{/branch}","tags_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/tags","blobs_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/git/refs{/sha}","trees_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/statuses/{sha}","languages_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/languages","stargazers_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/stargazers","contributors_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/contributors","subscribers_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/subscribers","subscription_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/subscription","commits_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/commits{/sha}","git_commits_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/git/commits{/sha}","comments_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/comments{/number}","issue_comment_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/issues/comments{/number}","contents_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/contents/{+path}","compare_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/merges","archive_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/downloads","issues_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/issues{/number}","pulls_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/pulls{/number}","milestones_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/milestones{/number}","notifications_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/labels{/name}","releases_url":"https://api.github.com/repos/qualtrics/puppet-module-collectd/releases{/id}","created_at":"2015-05-06T21:14:08Z","updated_at":"2015-05-06T21:27:25Z","pushed_at":"2015-05-06T21:27:25Z","git_url":"git://github.com/qualtrics/puppet-module-collectd.git","ssh_url":"git@github.com:qualtrics/puppet-module-collectd.git","clone_url":"https://github.com/qualtrics/puppet-module-collectd.git","svn_url":"https://github.com/qualtrics/puppet-module-collectd","homepage":"http://forge.puppetlabs.com/pdxcat/collectd","size":562,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"puppet-community:master","ref":"master","sha":"6343c5bd7975890878ed9716a145ec891b7c76aa","user":{"login":"puppet-community","id":8693967,"avatar_url":"https://avatars.githubusercontent.com/u/8693967?v=3","gravatar_id":"","url":"https://api.github.com/users/puppet-community","html_url":"https://github.com/puppet-community","followers_url":"https://api.github.com/users/puppet-community/followers","following_url":"https://api.github.com/users/puppet-community/following{/other_user}","gists_url":"https://api.github.com/users/puppet-community/gists{/gist_id}","starred_url":"https://api.github.com/users/puppet-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppet-community/subscriptions","organizations_url":"https://api.github.com/users/puppet-community/orgs","repos_url":"https://api.github.com/users/puppet-community/repos","events_url":"https://api.github.com/users/puppet-community/events{/privacy}","received_events_url":"https://api.github.com/users/puppet-community/received_events","type":"Organization","site_admin":false},"repo":{"id":8063324,"name":"puppet-collectd","full_name":"puppet-community/puppet-collectd","owner":{"login":"puppet-community","id":8693967,"avatar_url":"https://avatars.githubusercontent.com/u/8693967?v=3","gravatar_id":"","url":"https://api.github.com/users/puppet-community","html_url":"https://github.com/puppet-community","followers_url":"https://api.github.com/users/puppet-community/followers","following_url":"https://api.github.com/users/puppet-community/following{/other_user}","gists_url":"https://api.github.com/users/puppet-community/gists{/gist_id}","starred_url":"https://api.github.com/users/puppet-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppet-community/subscriptions","organizations_url":"https://api.github.com/users/puppet-community/orgs","repos_url":"https://api.github.com/users/puppet-community/repos","events_url":"https://api.github.com/users/puppet-community/events{/privacy}","received_events_url":"https://api.github.com/users/puppet-community/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppet-community/puppet-collectd","description":"Collectd module for Puppet","fork":false,"url":"https://api.github.com/repos/puppet-community/puppet-collectd","forks_url":"https://api.github.com/repos/puppet-community/puppet-collectd/forks","keys_url":"https://api.github.com/repos/puppet-community/puppet-collectd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppet-community/puppet-collectd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppet-community/puppet-collectd/teams","hooks_url":"https://api.github.com/repos/puppet-community/puppet-collectd/hooks","issue_events_url":"https://api.github.com/repos/puppet-community/puppet-collectd/issues/events{/number}","events_url":"https://api.github.com/repos/puppet-community/puppet-collectd/events","assignees_url":"https://api.github.com/repos/puppet-community/puppet-collectd/assignees{/user}","branches_url":"https://api.github.com/repos/puppet-community/puppet-collectd/branches{/branch}","tags_url":"https://api.github.com/repos/puppet-community/puppet-collectd/tags","blobs_url":"https://api.github.com/repos/puppet-community/puppet-collectd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppet-community/puppet-collectd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppet-community/puppet-collectd/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppet-community/puppet-collectd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppet-community/puppet-collectd/statuses/{sha}","languages_url":"https://api.github.com/repos/puppet-community/puppet-collectd/languages","stargazers_url":"https://api.github.com/repos/puppet-community/puppet-collectd/stargazers","contributors_url":"https://api.github.com/repos/puppet-community/puppet-collectd/contributors","subscribers_url":"https://api.github.com/repos/puppet-community/puppet-collectd/subscribers","subscription_url":"https://api.github.com/repos/puppet-community/puppet-collectd/subscription","commits_url":"https://api.github.com/repos/puppet-community/puppet-collectd/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppet-community/puppet-collectd/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppet-community/puppet-collectd/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppet-community/puppet-collectd/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppet-community/puppet-collectd/contents/{+path}","compare_url":"https://api.github.com/repos/puppet-community/puppet-collectd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppet-community/puppet-collectd/merges","archive_url":"https://api.github.com/repos/puppet-community/puppet-collectd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppet-community/puppet-collectd/downloads","issues_url":"https://api.github.com/repos/puppet-community/puppet-collectd/issues{/number}","pulls_url":"https://api.github.com/repos/puppet-community/puppet-collectd/pulls{/number}","milestones_url":"https://api.github.com/repos/puppet-community/puppet-collectd/milestones{/number}","notifications_url":"https://api.github.com/repos/puppet-community/puppet-collectd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppet-community/puppet-collectd/labels{/name}","releases_url":"https://api.github.com/repos/puppet-community/puppet-collectd/releases{/id}","created_at":"2013-02-07T00:21:39Z","updated_at":"2015-09-20T17:15:38Z","pushed_at":"2015-10-19T15:24:45Z","git_url":"git://github.com/puppet-community/puppet-collectd.git","ssh_url":"git@github.com:puppet-community/puppet-collectd.git","clone_url":"https://github.com/puppet-community/puppet-collectd.git","svn_url":"https://github.com/puppet-community/puppet-collectd","homepage":"http://forge.puppetlabs.com/puppet/collectd","size":2690,"stargazers_count":46,"watchers_count":46,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":152,"mirror_url":null,"open_issues_count":21,"forks":152,"open_issues":21,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppet-community/puppet-collectd/pulls/265"},"html":{"href":"https://github.com/puppet-community/puppet-collectd/pull/265"},"issue":{"href":"https://api.github.com/repos/puppet-community/puppet-collectd/issues/265"},"comments":{"href":"https://api.github.com/repos/puppet-community/puppet-collectd/issues/265/comments"},"review_comments":{"href":"https://api.github.com/repos/puppet-community/puppet-collectd/pulls/265/comments"},"review_comment":{"href":"https://api.github.com/repos/puppet-community/puppet-collectd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppet-community/puppet-collectd/pulls/265/commits"},"statuses":{"href":"https://api.github.com/repos/puppet-community/puppet-collectd/statuses/cf41bbad72814ba94336d1c6a602df008501a13b"}}}}