{"action":"closed","number":400,"pull_request":{"url":"https://api.github.com/repos/puppetlabs/marionette-collective/pulls/400","id":90429050,"html_url":"https://github.com/puppetlabs/marionette-collective/pull/400","diff_url":"https://github.com/puppetlabs/marionette-collective/pull/400.diff","patch_url":"https://github.com/puppetlabs/marionette-collective/pull/400.patch","issue_url":"https://api.github.com/repos/puppetlabs/marionette-collective/issues/400","number":400,"state":"closed","locked":false,"title":"(MCO-776) Support PQL in STDIN discovery","user":{"login":"ripienaar","id":82342,"avatar_url":"https://avatars.githubusercontent.com/u/82342?v=3","gravatar_id":"","url":"https://api.github.com/users/ripienaar","html_url":"https://github.com/ripienaar","followers_url":"https://api.github.com/users/ripienaar/followers","following_url":"https://api.github.com/users/ripienaar/following{/other_user}","gists_url":"https://api.github.com/users/ripienaar/gists{/gist_id}","starred_url":"https://api.github.com/users/ripienaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripienaar/subscriptions","organizations_url":"https://api.github.com/users/ripienaar/orgs","repos_url":"https://api.github.com/users/ripienaar/repos","events_url":"https://api.github.com/users/ripienaar/events{/privacy}","received_events_url":"https://api.github.com/users/ripienaar/received_events","type":"User","site_admin":false},"body":"This enables using Puppet Query output as discovery source for\nmcollective\n\n```\npuppet query \"inventory { facts.os.name = 'CentOS' }\"| mco puppet runonce\n```\n\nResults from puppet query has to include a certname items.\n\nThis also makes the find application STDIN aware and adds a nice\nreusable method to do the switch other apps can use who wish to support\nthis workflow\n","created_at":"2016-10-21T19:14:06Z","updated_at":"2016-11-01T22:00:00Z","closed_at":"2016-11-01T22:00:00Z","merged_at":"2016-11-01T22:00:00Z","merge_commit_sha":"3c22a7d8a7b147eb864cb398cdb8cc2bf5ebac9d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/marionette-collective/pulls/400/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/marionette-collective/pulls/400/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/marionette-collective/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/marionette-collective/issues/400/comments","statuses_url":"https://api.github.com/repos/puppetlabs/marionette-collective/statuses/a3cecdacf569210e39ae80bf147f4a4db67fb0c1","head":{"label":"ripienaar:776","ref":"776","sha":"a3cecdacf569210e39ae80bf147f4a4db67fb0c1","user":{"login":"ripienaar","id":82342,"avatar_url":"https://avatars.githubusercontent.com/u/82342?v=3","gravatar_id":"","url":"https://api.github.com/users/ripienaar","html_url":"https://github.com/ripienaar","followers_url":"https://api.github.com/users/ripienaar/followers","following_url":"https://api.github.com/users/ripienaar/following{/other_user}","gists_url":"https://api.github.com/users/ripienaar/gists{/gist_id}","starred_url":"https://api.github.com/users/ripienaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripienaar/subscriptions","organizations_url":"https://api.github.com/users/ripienaar/orgs","repos_url":"https://api.github.com/users/ripienaar/repos","events_url":"https://api.github.com/users/ripienaar/events{/privacy}","received_events_url":"https://api.github.com/users/ripienaar/received_events","type":"User","site_admin":false},"repo":{"id":760452,"name":"marionette-collective","full_name":"ripienaar/marionette-collective","owner":{"login":"ripienaar","id":82342,"avatar_url":"https://avatars.githubusercontent.com/u/82342?v=3","gravatar_id":"","url":"https://api.github.com/users/ripienaar","html_url":"https://github.com/ripienaar","followers_url":"https://api.github.com/users/ripienaar/followers","following_url":"https://api.github.com/users/ripienaar/following{/other_user}","gists_url":"https://api.github.com/users/ripienaar/gists{/gist_id}","starred_url":"https://api.github.com/users/ripienaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripienaar/subscriptions","organizations_url":"https://api.github.com/users/ripienaar/orgs","repos_url":"https://api.github.com/users/ripienaar/repos","events_url":"https://api.github.com/users/ripienaar/events{/privacy}","received_events_url":"https://api.github.com/users/ripienaar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ripienaar/marionette-collective","description":"The Marionette Collective","fork":true,"url":"https://api.github.com/repos/ripienaar/marionette-collective","forks_url":"https://api.github.com/repos/ripienaar/marionette-collective/forks","keys_url":"https://api.github.com/repos/ripienaar/marionette-collective/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ripienaar/marionette-collective/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ripienaar/marionette-collective/teams","hooks_url":"https://api.github.com/repos/ripienaar/marionette-collective/hooks","issue_events_url":"https://api.github.com/repos/ripienaar/marionette-collective/issues/events{/number}","events_url":"https://api.github.com/repos/ripienaar/marionette-collective/events","assignees_url":"https://api.github.com/repos/ripienaar/marionette-collective/assignees{/user}","branches_url":"https://api.github.com/repos/ripienaar/marionette-collective/branches{/branch}","tags_url":"https://api.github.com/repos/ripienaar/marionette-collective/tags","blobs_url":"https://api.github.com/repos/ripienaar/marionette-collective/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ripienaar/marionette-collective/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ripienaar/marionette-collective/git/refs{/sha}","trees_url":"https://api.github.com/repos/ripienaar/marionette-collective/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ripienaar/marionette-collective/statuses/{sha}","languages_url":"https://api.github.com/repos/ripienaar/marionette-collective/languages","stargazers_url":"https://api.github.com/repos/ripienaar/marionette-collective/stargazers","contributors_url":"https://api.github.com/repos/ripienaar/marionette-collective/contributors","subscribers_url":"https://api.github.com/repos/ripienaar/marionette-collective/subscribers","subscription_url":"https://api.github.com/repos/ripienaar/marionette-collective/subscription","commits_url":"https://api.github.com/repos/ripienaar/marionette-collective/commits{/sha}","git_commits_url":"https://api.github.com/repos/ripienaar/marionette-collective/git/commits{/sha}","comments_url":"https://api.github.com/repos/ripienaar/marionette-collective/comments{/number}","issue_comment_url":"https://api.github.com/repos/ripienaar/marionette-collective/issues/comments{/number}","contents_url":"https://api.github.com/repos/ripienaar/marionette-collective/contents/{+path}","compare_url":"https://api.github.com/repos/ripienaar/marionette-collective/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ripienaar/marionette-collective/merges","archive_url":"https://api.github.com/repos/ripienaar/marionette-collective/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ripienaar/marionette-collective/downloads","issues_url":"https://api.github.com/repos/ripienaar/marionette-collective/issues{/number}","pulls_url":"https://api.github.com/repos/ripienaar/marionette-collective/pulls{/number}","milestones_url":"https://api.github.com/repos/ripienaar/marionette-collective/milestones{/number}","notifications_url":"https://api.github.com/repos/ripienaar/marionette-collective/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ripienaar/marionette-collective/labels{/name}","releases_url":"https://api.github.com/repos/ripienaar/marionette-collective/releases{/id}","deployments_url":"https://api.github.com/repos/ripienaar/marionette-collective/deployments","created_at":"2010-07-06T20:17:28Z","updated_at":"2014-04-03T21:58:29Z","pushed_at":"2016-10-21T19:13:16Z","git_url":"git://github.com/ripienaar/marionette-collective.git","ssh_url":"git@github.com:ripienaar/marionette-collective.git","clone_url":"https://github.com/ripienaar/marionette-collective.git","svn_url":"https://github.com/ripienaar/marionette-collective","homepage":"http://docs.puppetlabs.com/mcollective/","size":8259,"stargazers_count":23,"watchers_count":23,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":23,"default_branch":"master"}},"base":{"label":"puppetlabs:master","ref":"master","sha":"902970113fc6953adf7f998c53a8fcbe1a599ef5","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","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":1013743,"name":"marionette-collective","full_name":"puppetlabs/marionette-collective","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","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/marionette-collective","description":"The Marionette Collective","fork":false,"url":"https://api.github.com/repos/puppetlabs/marionette-collective","forks_url":"https://api.github.com/repos/puppetlabs/marionette-collective/forks","keys_url":"https://api.github.com/repos/puppetlabs/marionette-collective/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/marionette-collective/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/marionette-collective/teams","hooks_url":"https://api.github.com/repos/puppetlabs/marionette-collective/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/marionette-collective/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/marionette-collective/events","assignees_url":"https://api.github.com/repos/puppetlabs/marionette-collective/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/marionette-collective/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/marionette-collective/tags","blobs_url":"https://api.github.com/repos/puppetlabs/marionette-collective/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/marionette-collective/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/marionette-collective/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/marionette-collective/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/marionette-collective/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/marionette-collective/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/marionette-collective/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/marionette-collective/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/marionette-collective/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/marionette-collective/subscription","commits_url":"https://api.github.com/repos/puppetlabs/marionette-collective/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/marionette-collective/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/marionette-collective/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/marionette-collective/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/marionette-collective/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/marionette-collective/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/marionette-collective/merges","archive_url":"https://api.github.com/repos/puppetlabs/marionette-collective/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/marionette-collective/downloads","issues_url":"https://api.github.com/repos/puppetlabs/marionette-collective/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/marionette-collective/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/marionette-collective/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/marionette-collective/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/marionette-collective/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/marionette-collective/releases{/id}","deployments_url":"https://api.github.com/repos/puppetlabs/marionette-collective/deployments","created_at":"2010-10-21T23:51:40Z","updated_at":"2016-10-24T18:50:40Z","pushed_at":"2016-11-01T22:00:00Z","git_url":"git://github.com/puppetlabs/marionette-collective.git","ssh_url":"git@github.com:puppetlabs/marionette-collective.git","clone_url":"https://github.com/puppetlabs/marionette-collective.git","svn_url":"https://github.com/puppetlabs/marionette-collective","homepage":"http://docs.puppetlabs.com/mcollective/","size":9169,"stargazers_count":207,"watchers_count":207,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":197,"mirror_url":null,"open_issues_count":4,"forks":197,"open_issues":4,"watchers":207,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/marionette-collective/pulls/400"},"html":{"href":"https://github.com/puppetlabs/marionette-collective/pull/400"},"issue":{"href":"https://api.github.com/repos/puppetlabs/marionette-collective/issues/400"},"comments":{"href":"https://api.github.com/repos/puppetlabs/marionette-collective/issues/400/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/marionette-collective/pulls/400/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/marionette-collective/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/marionette-collective/pulls/400/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/marionette-collective/statuses/a3cecdacf569210e39ae80bf147f4a4db67fb0c1"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"MikaelSmith","id":8162496,"avatar_url":"https://avatars.githubusercontent.com/u/8162496?v=3","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},"comments":2,"review_comments":0,"commits":1,"additions":104,"deletions":19,"changed_files":8}}
{"actor":{"display_login":"MikaelSmith"}}