{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/puppet/pulls/comments/169740208","pull_request_review_id":98315872,"id":169740208,"diff_hunk":"@@ -167,11 +171,13 @@ def initialize(resource)\n         @time = Time.now\n         @events = []\n         @resource_type = resource.type.to_s.capitalize\n+        @provider_used = resource.provider.class.to_s unless resource.provider.nil?","path":"lib/puppet/resource/status.rb","position":15,"original_position":15,"commit_id":"7f0e5dbf768121e6cba6eb0a941ed05de157ec42","original_commit_id":"7f0e5dbf768121e6cba6eb0a941ed05de157ec42","user":{"login":"ericldelaney","id":25037515,"avatar_url":"https://avatars3.githubusercontent.com/u/25037515?v=4","gravatar_id":"","url":"https://api.github.com/users/ericldelaney","html_url":"https://github.com/ericldelaney","followers_url":"https://api.github.com/users/ericldelaney/followers","following_url":"https://api.github.com/users/ericldelaney/following{/other_user}","gists_url":"https://api.github.com/users/ericldelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/ericldelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericldelaney/subscriptions","organizations_url":"https://api.github.com/users/ericldelaney/orgs","repos_url":"https://api.github.com/users/ericldelaney/repos","events_url":"https://api.github.com/users/ericldelaney/events{/privacy}","received_events_url":"https://api.github.com/users/ericldelaney/received_events","type":"User","site_admin":false},"body":"@joshcooper name isn't the thing we're looking for.\r\n\r\n```\r\n(byebug) resource.provider.name\r\n\"/my/file\"\r\n(byebug) resource.provider.class.to_s\r\n\"Puppet::Type::File::ProviderPosix\"\r\n(byebug) resource.provider.methods.sort\r\n[:!, :!=, :!~, :<, :<=, :<=>, :==, :===, :=~, :>, :>=, :N_, :Nn_, :__id__, :__is_a__, :__metaclass__, :__send__, :adderrorcontext, :alert, :between?, :byebug, :class, :class_def, :clear, :clone, :command, :crit, :daemonize, :dclone, :debug, :debugger, :define_singleton_method, :devfail, :display, :dup, :emerg, :enum_for, :eql?, :equal?, :err, :error_context, :exceptwrap, :execfail, :execpipe, :execute, :expects, :extend, :fail, :feature?, :features, :fixtures, :freeze, :frozen?, :gem, :get, :get_posix_field, :gid, :gid2name, :group, :group=, :has_feature, :has_features, :hash, :idfield, :info, :inspect, :instance_eval, :instance_exec, :instance_of?, :instance_variable_defined?, :instance_variable_get, :instance_variable_set, :instance_variables, :is_a?, :itself, :kind_of?, :manages_symlinks?, :meta_def, :meta_eval, :meta_undef, :method, :method_exists?, :methodbyid, :methodbyname, :methods, :mocha, :mocha_inspect, :mode, :mode=, :my_fixture, :my_fixture_dir, :my_fixtures, :name, :name2gid, :name2uid, :nil?, :notice, :ns_, :object_id, :owner, :owner=, :pretty_inspect, :pretty_print, :pretty_print_cycle, :pretty_print_inspect, :pretty_print_instance_variables, :private_methods, :protected_methods, :psych_to_yaml, :public_method, :public_methods, :public_send, :remote_byebug, :remove_instance_variable, :reset_mocha, :resource, :resource=, :respond_to?, :s_, :satisfies?, :search_posix_field, :send, :set, :should, :should_not, :singleton_class, :singleton_method, :singleton_methods, :stubba_method, :stubba_object, :stubs, :taint, :tainted?, :tap, :to_enum, :to_json, :to_matcher, :to_pson, :to_s, :to_yaml, :to_yaml_properties, :trust, :uid, :uid2name, :unstub, :untaint, :untrust, :untrusted?, :warning, :with_verbose_disabled]\r\n(byebug)\r\n```","created_at":"2018-02-21T18:50:14Z","updated_at":"2018-02-21T18:50:14Z","html_url":"https://github.com/puppetlabs/puppet/pull/6655#discussion_r169740208","pull_request_url":"https://api.github.com/repos/puppetlabs/puppet/pulls/6655","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppet/pulls/comments/169740208"},"html":{"href":"https://github.com/puppetlabs/puppet/pull/6655#discussion_r169740208"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/puppet/pulls/6655"}},"in_reply_to_id":169735185},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppet/pulls/6655","id":170344006,"html_url":"https://github.com/puppetlabs/puppet/pull/6655","diff_url":"https://github.com/puppetlabs/puppet/pull/6655.diff","patch_url":"https://github.com/puppetlabs/puppet/pull/6655.patch","issue_url":"https://api.github.com/repos/puppetlabs/puppet/issues/6655","number":6655,"state":"open","locked":false,"title":"{WIP} (PUP-8412) add provider_used to report","user":{"login":"ericldelaney","id":25037515,"avatar_url":"https://avatars3.githubusercontent.com/u/25037515?v=4","gravatar_id":"","url":"https://api.github.com/users/ericldelaney","html_url":"https://github.com/ericldelaney","followers_url":"https://api.github.com/users/ericldelaney/followers","following_url":"https://api.github.com/users/ericldelaney/following{/other_user}","gists_url":"https://api.github.com/users/ericldelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/ericldelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericldelaney/subscriptions","organizations_url":"https://api.github.com/users/ericldelaney/orgs","repos_url":"https://api.github.com/users/ericldelaney/repos","events_url":"https://api.github.com/users/ericldelaney/events{/privacy}","received_events_url":"https://api.github.com/users/ericldelaney/received_events","type":"User","site_admin":false},"body":"Add the provider used for each resource used.","created_at":"2018-02-21T00:05:56Z","updated_at":"2018-02-21T18:50:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0862cb94270001f3300c482b446f1b11983aa4d9","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jhelwig","id":14557,"avatar_url":"https://avatars3.githubusercontent.com/u/14557?v=4","gravatar_id":"","url":"https://api.github.com/users/jhelwig","html_url":"https://github.com/jhelwig","followers_url":"https://api.github.com/users/jhelwig/followers","following_url":"https://api.github.com/users/jhelwig/following{/other_user}","gists_url":"https://api.github.com/users/jhelwig/gists{/gist_id}","starred_url":"https://api.github.com/users/jhelwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhelwig/subscriptions","organizations_url":"https://api.github.com/users/jhelwig/orgs","repos_url":"https://api.github.com/users/jhelwig/repos","events_url":"https://api.github.com/users/jhelwig/events{/privacy}","received_events_url":"https://api.github.com/users/jhelwig/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":183279739,"url":"https://api.github.com/repos/puppetlabs/puppet/labels/Blocked","name":"Blocked","color":"e11d21","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/puppet/pulls/6655/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/puppet/pulls/6655/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/puppet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/puppet/issues/6655/comments","statuses_url":"https://api.github.com/repos/puppetlabs/puppet/statuses/7f0e5dbf768121e6cba6eb0a941ed05de157ec42","head":{"label":"ericldelaney:task/master/PUP-8412/add_provider_used_to_report","ref":"task/master/PUP-8412/add_provider_used_to_report","sha":"7f0e5dbf768121e6cba6eb0a941ed05de157ec42","user":{"login":"ericldelaney","id":25037515,"avatar_url":"https://avatars3.githubusercontent.com/u/25037515?v=4","gravatar_id":"","url":"https://api.github.com/users/ericldelaney","html_url":"https://github.com/ericldelaney","followers_url":"https://api.github.com/users/ericldelaney/followers","following_url":"https://api.github.com/users/ericldelaney/following{/other_user}","gists_url":"https://api.github.com/users/ericldelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/ericldelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericldelaney/subscriptions","organizations_url":"https://api.github.com/users/ericldelaney/orgs","repos_url":"https://api.github.com/users/ericldelaney/repos","events_url":"https://api.github.com/users/ericldelaney/events{/privacy}","received_events_url":"https://api.github.com/users/ericldelaney/received_events","type":"User","site_admin":false},"repo":{"id":80039804,"name":"puppet","full_name":"ericldelaney/puppet","owner":{"login":"ericldelaney","id":25037515,"avatar_url":"https://avatars3.githubusercontent.com/u/25037515?v=4","gravatar_id":"","url":"https://api.github.com/users/ericldelaney","html_url":"https://github.com/ericldelaney","followers_url":"https://api.github.com/users/ericldelaney/followers","following_url":"https://api.github.com/users/ericldelaney/following{/other_user}","gists_url":"https://api.github.com/users/ericldelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/ericldelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericldelaney/subscriptions","organizations_url":"https://api.github.com/users/ericldelaney/orgs","repos_url":"https://api.github.com/users/ericldelaney/repos","events_url":"https://api.github.com/users/ericldelaney/events{/privacy}","received_events_url":"https://api.github.com/users/ericldelaney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ericldelaney/puppet","description":"Server automation framework and application","fork":true,"url":"https://api.github.com/repos/ericldelaney/puppet","forks_url":"https://api.github.com/repos/ericldelaney/puppet/forks","keys_url":"https://api.github.com/repos/ericldelaney/puppet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ericldelaney/puppet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ericldelaney/puppet/teams","hooks_url":"https://api.github.com/repos/ericldelaney/puppet/hooks","issue_events_url":"https://api.github.com/repos/ericldelaney/puppet/issues/events{/number}","events_url":"https://api.github.com/repos/ericldelaney/puppet/events","assignees_url":"https://api.github.com/repos/ericldelaney/puppet/assignees{/user}","branches_url":"https://api.github.com/repos/ericldelaney/puppet/branches{/branch}","tags_url":"https://api.github.com/repos/ericldelaney/puppet/tags","blobs_url":"https://api.github.com/repos/ericldelaney/puppet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ericldelaney/puppet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ericldelaney/puppet/git/refs{/sha}","trees_url":"https://api.github.com/repos/ericldelaney/puppet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ericldelaney/puppet/statuses/{sha}","languages_url":"https://api.github.com/repos/ericldelaney/puppet/languages","stargazers_url":"https://api.github.com/repos/ericldelaney/puppet/stargazers","contributors_url":"https://api.github.com/repos/ericldelaney/puppet/contributors","subscribers_url":"https://api.github.com/repos/ericldelaney/puppet/subscribers","subscription_url":"https://api.github.com/repos/ericldelaney/puppet/subscription","commits_url":"https://api.github.com/repos/ericldelaney/puppet/commits{/sha}","git_commits_url":"https://api.github.com/repos/ericldelaney/puppet/git/commits{/sha}","comments_url":"https://api.github.com/repos/ericldelaney/puppet/comments{/number}","issue_comment_url":"https://api.github.com/repos/ericldelaney/puppet/issues/comments{/number}","contents_url":"https://api.github.com/repos/ericldelaney/puppet/contents/{+path}","compare_url":"https://api.github.com/repos/ericldelaney/puppet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ericldelaney/puppet/merges","archive_url":"https://api.github.com/repos/ericldelaney/puppet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ericldelaney/puppet/downloads","issues_url":"https://api.github.com/repos/ericldelaney/puppet/issues{/number}","pulls_url":"https://api.github.com/repos/ericldelaney/puppet/pulls{/number}","milestones_url":"https://api.github.com/repos/ericldelaney/puppet/milestones{/number}","notifications_url":"https://api.github.com/repos/ericldelaney/puppet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ericldelaney/puppet/labels{/name}","releases_url":"https://api.github.com/repos/ericldelaney/puppet/releases{/id}","deployments_url":"https://api.github.com/repos/ericldelaney/puppet/deployments","created_at":"2017-01-25T17:45:05Z","updated_at":"2017-01-25T17:45:17Z","pushed_at":"2018-02-21T17:41:12Z","git_url":"git://github.com/ericldelaney/puppet.git","ssh_url":"git@github.com:ericldelaney/puppet.git","clone_url":"https://github.com/ericldelaney/puppet.git","svn_url":"https://github.com/ericldelaney/puppet","homepage":"https://puppet.com/puppet/what-is-puppet","size":63051,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"puppetlabs:master","ref":"master","sha":"a319cba873030f9aa2abc8743835dbebee91c6cb","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars0.githubusercontent.com/u/234268?v=4","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":910744,"name":"puppet","full_name":"puppetlabs/puppet","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars0.githubusercontent.com/u/234268?v=4","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/puppet","description":"Server automation framework and application","fork":false,"url":"https://api.github.com/repos/puppetlabs/puppet","forks_url":"https://api.github.com/repos/puppetlabs/puppet/forks","keys_url":"https://api.github.com/repos/puppetlabs/puppet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/puppet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/puppet/teams","hooks_url":"https://api.github.com/repos/puppetlabs/puppet/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/puppet/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/puppet/events","assignees_url":"https://api.github.com/repos/puppetlabs/puppet/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/puppet/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/puppet/tags","blobs_url":"https://api.github.com/repos/puppetlabs/puppet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/puppet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/puppet/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/puppet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/puppet/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/puppet/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/puppet/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/puppet/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/puppet/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/puppet/subscription","commits_url":"https://api.github.com/repos/puppetlabs/puppet/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/puppet/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/puppet/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/puppet/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/puppet/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/puppet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/puppet/merges","archive_url":"https://api.github.com/repos/puppetlabs/puppet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/puppet/downloads","issues_url":"https://api.github.com/repos/puppetlabs/puppet/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/puppet/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/puppet/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/puppet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/puppet/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/puppet/releases{/id}","deployments_url":"https://api.github.com/repos/puppetlabs/puppet/deployments","created_at":"2010-09-14T19:26:44Z","updated_at":"2018-02-21T15:34:55Z","pushed_at":"2018-02-21T18:13:26Z","git_url":"git://github.com/puppetlabs/puppet.git","ssh_url":"git@github.com:puppetlabs/puppet.git","clone_url":"https://github.com/puppetlabs/puppet.git","svn_url":"https://github.com/puppetlabs/puppet","homepage":"https://puppet.com/puppet/what-is-puppet","size":62985,"stargazers_count":4883,"watchers_count":4883,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1982,"mirror_url":null,"archived":false,"open_issues_count":45,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":1982,"open_issues":45,"watchers":4883,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppet/pulls/6655"},"html":{"href":"https://github.com/puppetlabs/puppet/pull/6655"},"issue":{"href":"https://api.github.com/repos/puppetlabs/puppet/issues/6655"},"comments":{"href":"https://api.github.com/repos/puppetlabs/puppet/issues/6655/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/puppet/pulls/6655/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/puppet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/puppet/pulls/6655/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/puppet/statuses/7f0e5dbf768121e6cba6eb0a941ed05de157ec42"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ericldelaney"}}