{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/pulls/comments/206950800","pull_request_review_id":142464111,"id":206950800,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjk1MDgwMA==","diff_hunk":"@@ -0,0 +1,8 @@\n+if (Test-Path 'HKLM:\\SOFTWARE\\Puppet Labs\\Puppet') {\n+  $reg = $(Get-ItemProperty -Path 'HKLM:\\SOFTWARE\\Puppet Labs\\Puppet')\n+  if (Test-Path $reg.RememberedInstallDir64) {\n+    type $($reg.RememberedInstallDir64+\"VERSION\")\n+  } elseif (Test-Path $reg.RememberedInstallDir) {\n+    type $($reg.RememberedInstallDir+\"VERSION\")\n+  }\n+}","path":"tasks/version_powershell.ps1","position":8,"original_position":8,"commit_id":"aec77a1474f73f1f4f00765e84af10ed1c9df483","original_commit_id":"aec77a1474f73f1f4f00765e84af10ed1c9df483","user":{"login":"MikaelSmith","id":8162496,"node_id":"MDQ6VXNlcjgxNjI0OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/8162496?v=4","gravatar_id":"","url":"https://api.github.com/users/MikaelSmith","html_url":"https://github.com/MikaelSmith","followers_url":"https://api.github.com/users/MikaelSmith/followers","following_url":"https://api.github.com/users/MikaelSmith/following{/other_user}","gists_url":"https://api.github.com/users/MikaelSmith/gists{/gist_id}","starred_url":"https://api.github.com/users/MikaelSmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikaelSmith/subscriptions","organizations_url":"https://api.github.com/users/MikaelSmith/orgs","repos_url":"https://api.github.com/users/MikaelSmith/repos","events_url":"https://api.github.com/users/MikaelSmith/events{/privacy}","received_events_url":"https://api.github.com/users/MikaelSmith/received_events","type":"User","site_admin":false},"body":"Should we also try `puppet --version` in case Puppet is present not from our packages? For Bolt's use-case, apply wouldn't work without `/opt/puppetlabs/puppet/bin/ruby` or `C:/Program Files/Puppet Labs/Puppet/sys/ruby/bin/ruby`.","created_at":"2018-08-01T16:40:55Z","updated_at":"2018-08-01T16:40:55Z","html_url":"https://github.com/puppetlabs/puppetlabs-puppet_agent/pull/306#discussion_r206950800","pull_request_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/pulls/306","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/pulls/comments/206950800"},"html":{"href":"https://github.com/puppetlabs/puppetlabs-puppet_agent/pull/306#discussion_r206950800"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/pulls/306"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/pulls/306","id":205482694,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NDgyNjk0","html_url":"https://github.com/puppetlabs/puppetlabs-puppet_agent/pull/306","diff_url":"https://github.com/puppetlabs/puppetlabs-puppet_agent/pull/306.diff","patch_url":"https://github.com/puppetlabs/puppetlabs-puppet_agent/pull/306.patch","issue_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/issues/306","number":306,"state":"open","locked":false,"title":"(BOLT-641) Add version task","user":{"login":"MikaelSmith","id":8162496,"node_id":"MDQ6VXNlcjgxNjI0OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/8162496?v=4","gravatar_id":"","url":"https://api.github.com/users/MikaelSmith","html_url":"https://github.com/MikaelSmith","followers_url":"https://api.github.com/users/MikaelSmith/followers","following_url":"https://api.github.com/users/MikaelSmith/following{/other_user}","gists_url":"https://api.github.com/users/MikaelSmith/gists{/gist_id}","starred_url":"https://api.github.com/users/MikaelSmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikaelSmith/subscriptions","organizations_url":"https://api.github.com/users/MikaelSmith/orgs","repos_url":"https://api.github.com/users/MikaelSmith/repos","events_url":"https://api.github.com/users/MikaelSmith/events{/privacy}","received_events_url":"https://api.github.com/users/MikaelSmith/received_events","type":"User","site_admin":false},"body":"Adds a task to retrieve the installed version of the puppet-agent\r\npackage. Returns empty results if the package is not present.","created_at":"2018-08-01T16:29:56Z","updated_at":"2018-08-01T16:40:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab110efcff0c2af2f6ad0e2cb65e6c35bf74da46","assignee":null,"assignees":[],"requested_reviewers":[{"login":"donoghuc","id":15354214,"node_id":"MDQ6VXNlcjE1MzU0MjE0","avatar_url":"https://avatars3.githubusercontent.com/u/15354214?v=4","gravatar_id":"","url":"https://api.github.com/users/donoghuc","html_url":"https://github.com/donoghuc","followers_url":"https://api.github.com/users/donoghuc/followers","following_url":"https://api.github.com/users/donoghuc/following{/other_user}","gists_url":"https://api.github.com/users/donoghuc/gists{/gist_id}","starred_url":"https://api.github.com/users/donoghuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donoghuc/subscriptions","organizations_url":"https://api.github.com/users/donoghuc/orgs","repos_url":"https://api.github.com/users/donoghuc/repos","events_url":"https://api.github.com/users/donoghuc/events{/privacy}","received_events_url":"https://api.github.com/users/donoghuc/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/pulls/306/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/pulls/306/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/issues/306/comments","statuses_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/statuses/aec77a1474f73f1f4f00765e84af10ed1c9df483","head":{"label":"MikaelSmith:version-task","ref":"version-task","sha":"aec77a1474f73f1f4f00765e84af10ed1c9df483","user":{"login":"MikaelSmith","id":8162496,"node_id":"MDQ6VXNlcjgxNjI0OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/8162496?v=4","gravatar_id":"","url":"https://api.github.com/users/MikaelSmith","html_url":"https://github.com/MikaelSmith","followers_url":"https://api.github.com/users/MikaelSmith/followers","following_url":"https://api.github.com/users/MikaelSmith/following{/other_user}","gists_url":"https://api.github.com/users/MikaelSmith/gists{/gist_id}","starred_url":"https://api.github.com/users/MikaelSmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikaelSmith/subscriptions","organizations_url":"https://api.github.com/users/MikaelSmith/orgs","repos_url":"https://api.github.com/users/MikaelSmith/repos","events_url":"https://api.github.com/users/MikaelSmith/events{/privacy}","received_events_url":"https://api.github.com/users/MikaelSmith/received_events","type":"User","site_admin":false},"repo":{"id":35250987,"node_id":"MDEwOlJlcG9zaXRvcnkzNTI1MDk4Nw==","name":"puppetlabs-puppet_agent","full_name":"MikaelSmith/puppetlabs-puppet_agent","owner":{"login":"MikaelSmith","id":8162496,"node_id":"MDQ6VXNlcjgxNjI0OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/8162496?v=4","gravatar_id":"","url":"https://api.github.com/users/MikaelSmith","html_url":"https://github.com/MikaelSmith","followers_url":"https://api.github.com/users/MikaelSmith/followers","following_url":"https://api.github.com/users/MikaelSmith/following{/other_user}","gists_url":"https://api.github.com/users/MikaelSmith/gists{/gist_id}","starred_url":"https://api.github.com/users/MikaelSmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikaelSmith/subscriptions","organizations_url":"https://api.github.com/users/MikaelSmith/orgs","repos_url":"https://api.github.com/users/MikaelSmith/repos","events_url":"https://api.github.com/users/MikaelSmith/events{/privacy}","received_events_url":"https://api.github.com/users/MikaelSmith/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MikaelSmith/puppetlabs-puppet_agent","description":"Module for managing Puppet-Agent","fork":true,"url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent","forks_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/forks","keys_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/teams","hooks_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/hooks","issue_events_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/issues/events{/number}","events_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/events","assignees_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/assignees{/user}","branches_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/branches{/branch}","tags_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/tags","blobs_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/statuses/{sha}","languages_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/languages","stargazers_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/stargazers","contributors_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/contributors","subscribers_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/subscribers","subscription_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/subscription","commits_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/contents/{+path}","compare_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/merges","archive_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/downloads","issues_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/issues{/number}","pulls_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/pulls{/number}","milestones_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/milestones{/number}","notifications_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/labels{/name}","releases_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/releases{/id}","deployments_url":"https://api.github.com/repos/MikaelSmith/puppetlabs-puppet_agent/deployments","created_at":"2015-05-08T00:55:48Z","updated_at":"2016-03-03T22:49:56Z","pushed_at":"2018-08-01T16:29:34Z","git_url":"git://github.com/MikaelSmith/puppetlabs-puppet_agent.git","ssh_url":"git@github.com:MikaelSmith/puppetlabs-puppet_agent.git","clone_url":"https://github.com/MikaelSmith/puppetlabs-puppet_agent.git","svn_url":"https://github.com/MikaelSmith/puppetlabs-puppet_agent","homepage":"https://tickets.puppetlabs.com/browse/PUP","size":699,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"puppetlabs:master","ref":"master","sha":"73c71c8b856fc57283e34ef67e7245f5997e2425","user":{"login":"puppetlabs","id":234268,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNDI2OA==","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":35058943,"node_id":"MDEwOlJlcG9zaXRvcnkzNTA1ODk0Mw==","name":"puppetlabs-puppet_agent","full_name":"puppetlabs/puppetlabs-puppet_agent","owner":{"login":"puppetlabs","id":234268,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNDI2OA==","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/puppetlabs-puppet_agent","description":"Module for managing Puppet-Agent","fork":false,"url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent","forks_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/forks","keys_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/teams","hooks_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/events","assignees_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/tags","blobs_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/subscription","commits_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/merges","archive_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/downloads","issues_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/releases{/id}","deployments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/deployments","created_at":"2015-05-04T20:50:16Z","updated_at":"2018-08-01T05:25:50Z","pushed_at":"2018-08-01T16:29:57Z","git_url":"git://github.com/puppetlabs/puppetlabs-puppet_agent.git","ssh_url":"git@github.com:puppetlabs/puppetlabs-puppet_agent.git","clone_url":"https://github.com/puppetlabs/puppetlabs-puppet_agent.git","svn_url":"https://github.com/puppetlabs/puppetlabs-puppet_agent","homepage":"https://tickets.puppetlabs.com/browse/MODULES","size":674,"stargazers_count":23,"watchers_count":23,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":103,"open_issues":10,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/pulls/306"},"html":{"href":"https://github.com/puppetlabs/puppetlabs-puppet_agent/pull/306"},"issue":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/issues/306"},"comments":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/issues/306/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/pulls/306/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/pulls/306/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-puppet_agent/statuses/aec77a1474f73f1f4f00765e84af10ed1c9df483"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"MikaelSmith"}}