{"action":"closed","number":40,"pull_request":{"url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/pulls/40","id":81107401,"html_url":"https://github.com/Nosmoht/ansible-module-foreman/pull/40","diff_url":"https://github.com/Nosmoht/ansible-module-foreman/pull/40.diff","patch_url":"https://github.com/Nosmoht/ansible-module-foreman/pull/40.patch","issue_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/issues/40","number":40,"state":"closed","locked":false,"title":"host: also check for power state on and off","user":{"login":"stintel","id":1258811,"avatar_url":"https://avatars.githubusercontent.com/u/1258811?v=3","gravatar_id":"","url":"https://api.github.com/users/stintel","html_url":"https://github.com/stintel","followers_url":"https://api.github.com/users/stintel/followers","following_url":"https://api.github.com/users/stintel/following{/other_user}","gists_url":"https://api.github.com/users/stintel/gists{/gist_id}","starred_url":"https://api.github.com/users/stintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stintel/subscriptions","organizations_url":"https://api.github.com/users/stintel/orgs","repos_url":"https://api.github.com/users/stintel/repos","events_url":"https://api.github.com/users/stintel/events{/privacy}","received_events_url":"https://api.github.com/users/stintel/received_events","type":"User","site_admin":false},"body":"The return values for the power_action \"state\" come from the BMC or\r\nhypervisor Foreman makes the calls to, so they aren't unified.\r\n\r\nOn vSphere the return values seem to be on and off, so check the power\r\nstate against these values as well.","created_at":"2016-08-12T11:53:17Z","updated_at":"2016-08-12T14:36:14Z","closed_at":"2016-08-12T14:36:14Z","merged_at":"2016-08-12T14:36:14Z","merge_commit_sha":"b1506741c29c92d3a2f84ebd52570ff5ad70a988","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/pulls/40/commits","review_comments_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/pulls/40/comments","review_comment_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/issues/40/comments","statuses_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/statuses/5026becc43ec09882470307f0b3634a9671136f4","head":{"label":"stintel:host_power_state","ref":"host_power_state","sha":"5026becc43ec09882470307f0b3634a9671136f4","user":{"login":"stintel","id":1258811,"avatar_url":"https://avatars.githubusercontent.com/u/1258811?v=3","gravatar_id":"","url":"https://api.github.com/users/stintel","html_url":"https://github.com/stintel","followers_url":"https://api.github.com/users/stintel/followers","following_url":"https://api.github.com/users/stintel/following{/other_user}","gists_url":"https://api.github.com/users/stintel/gists{/gist_id}","starred_url":"https://api.github.com/users/stintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stintel/subscriptions","organizations_url":"https://api.github.com/users/stintel/orgs","repos_url":"https://api.github.com/users/stintel/repos","events_url":"https://api.github.com/users/stintel/events{/privacy}","received_events_url":"https://api.github.com/users/stintel/received_events","type":"User","site_admin":false},"repo":{"id":56156119,"name":"ansible-module-foreman","full_name":"stintel/ansible-module-foreman","owner":{"login":"stintel","id":1258811,"avatar_url":"https://avatars.githubusercontent.com/u/1258811?v=3","gravatar_id":"","url":"https://api.github.com/users/stintel","html_url":"https://github.com/stintel","followers_url":"https://api.github.com/users/stintel/followers","following_url":"https://api.github.com/users/stintel/following{/other_user}","gists_url":"https://api.github.com/users/stintel/gists{/gist_id}","starred_url":"https://api.github.com/users/stintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stintel/subscriptions","organizations_url":"https://api.github.com/users/stintel/orgs","repos_url":"https://api.github.com/users/stintel/repos","events_url":"https://api.github.com/users/stintel/events{/privacy}","received_events_url":"https://api.github.com/users/stintel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stintel/ansible-module-foreman","description":"Ansible module to manage configuration of Foreman","fork":true,"url":"https://api.github.com/repos/stintel/ansible-module-foreman","forks_url":"https://api.github.com/repos/stintel/ansible-module-foreman/forks","keys_url":"https://api.github.com/repos/stintel/ansible-module-foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stintel/ansible-module-foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stintel/ansible-module-foreman/teams","hooks_url":"https://api.github.com/repos/stintel/ansible-module-foreman/hooks","issue_events_url":"https://api.github.com/repos/stintel/ansible-module-foreman/issues/events{/number}","events_url":"https://api.github.com/repos/stintel/ansible-module-foreman/events","assignees_url":"https://api.github.com/repos/stintel/ansible-module-foreman/assignees{/user}","branches_url":"https://api.github.com/repos/stintel/ansible-module-foreman/branches{/branch}","tags_url":"https://api.github.com/repos/stintel/ansible-module-foreman/tags","blobs_url":"https://api.github.com/repos/stintel/ansible-module-foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stintel/ansible-module-foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stintel/ansible-module-foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/stintel/ansible-module-foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stintel/ansible-module-foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/stintel/ansible-module-foreman/languages","stargazers_url":"https://api.github.com/repos/stintel/ansible-module-foreman/stargazers","contributors_url":"https://api.github.com/repos/stintel/ansible-module-foreman/contributors","subscribers_url":"https://api.github.com/repos/stintel/ansible-module-foreman/subscribers","subscription_url":"https://api.github.com/repos/stintel/ansible-module-foreman/subscription","commits_url":"https://api.github.com/repos/stintel/ansible-module-foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/stintel/ansible-module-foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/stintel/ansible-module-foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/stintel/ansible-module-foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/stintel/ansible-module-foreman/contents/{+path}","compare_url":"https://api.github.com/repos/stintel/ansible-module-foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stintel/ansible-module-foreman/merges","archive_url":"https://api.github.com/repos/stintel/ansible-module-foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stintel/ansible-module-foreman/downloads","issues_url":"https://api.github.com/repos/stintel/ansible-module-foreman/issues{/number}","pulls_url":"https://api.github.com/repos/stintel/ansible-module-foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/stintel/ansible-module-foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/stintel/ansible-module-foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stintel/ansible-module-foreman/labels{/name}","releases_url":"https://api.github.com/repos/stintel/ansible-module-foreman/releases{/id}","deployments_url":"https://api.github.com/repos/stintel/ansible-module-foreman/deployments","created_at":"2016-04-13T13:52:56Z","updated_at":"2016-04-13T13:52:57Z","pushed_at":"2016-08-12T11:51:02Z","git_url":"git://github.com/stintel/ansible-module-foreman.git","ssh_url":"git@github.com:stintel/ansible-module-foreman.git","clone_url":"https://github.com/stintel/ansible-module-foreman.git","svn_url":"https://github.com/stintel/ansible-module-foreman","homepage":"","size":251,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"Nosmoht:master","ref":"master","sha":"6ea17eff3a8fe0a118ab6e2b9493b720fb76c604","user":{"login":"Nosmoht","id":6696043,"avatar_url":"https://avatars.githubusercontent.com/u/6696043?v=3","gravatar_id":"","url":"https://api.github.com/users/Nosmoht","html_url":"https://github.com/Nosmoht","followers_url":"https://api.github.com/users/Nosmoht/followers","following_url":"https://api.github.com/users/Nosmoht/following{/other_user}","gists_url":"https://api.github.com/users/Nosmoht/gists{/gist_id}","starred_url":"https://api.github.com/users/Nosmoht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nosmoht/subscriptions","organizations_url":"https://api.github.com/users/Nosmoht/orgs","repos_url":"https://api.github.com/users/Nosmoht/repos","events_url":"https://api.github.com/users/Nosmoht/events{/privacy}","received_events_url":"https://api.github.com/users/Nosmoht/received_events","type":"User","site_admin":false},"repo":{"id":31770375,"name":"ansible-module-foreman","full_name":"Nosmoht/ansible-module-foreman","owner":{"login":"Nosmoht","id":6696043,"avatar_url":"https://avatars.githubusercontent.com/u/6696043?v=3","gravatar_id":"","url":"https://api.github.com/users/Nosmoht","html_url":"https://github.com/Nosmoht","followers_url":"https://api.github.com/users/Nosmoht/followers","following_url":"https://api.github.com/users/Nosmoht/following{/other_user}","gists_url":"https://api.github.com/users/Nosmoht/gists{/gist_id}","starred_url":"https://api.github.com/users/Nosmoht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nosmoht/subscriptions","organizations_url":"https://api.github.com/users/Nosmoht/orgs","repos_url":"https://api.github.com/users/Nosmoht/repos","events_url":"https://api.github.com/users/Nosmoht/events{/privacy}","received_events_url":"https://api.github.com/users/Nosmoht/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nosmoht/ansible-module-foreman","description":"Ansible module to manage configuration of Foreman","fork":false,"url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman","forks_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/forks","keys_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/teams","hooks_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/hooks","issue_events_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/issues/events{/number}","events_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/events","assignees_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/assignees{/user}","branches_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/branches{/branch}","tags_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/tags","blobs_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/languages","stargazers_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/stargazers","contributors_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/contributors","subscribers_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/subscribers","subscription_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/subscription","commits_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/contents/{+path}","compare_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/merges","archive_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/downloads","issues_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/issues{/number}","pulls_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/labels{/name}","releases_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/releases{/id}","deployments_url":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/deployments","created_at":"2015-03-06T13:27:14Z","updated_at":"2016-08-02T21:11:32Z","pushed_at":"2016-08-12T14:36:15Z","git_url":"git://github.com/Nosmoht/ansible-module-foreman.git","ssh_url":"git@github.com:Nosmoht/ansible-module-foreman.git","clone_url":"https://github.com/Nosmoht/ansible-module-foreman.git","svn_url":"https://github.com/Nosmoht/ansible-module-foreman","homepage":"","size":247,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/pulls/40"},"html":{"href":"https://github.com/Nosmoht/ansible-module-foreman/pull/40"},"issue":{"href":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/issues/40"},"comments":{"href":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/Nosmoht/ansible-module-foreman/statuses/5026becc43ec09882470307f0b3634a9671136f4"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Nosmoht","id":6696043,"avatar_url":"https://avatars.githubusercontent.com/u/6696043?v=3","gravatar_id":"","url":"https://api.github.com/users/Nosmoht","html_url":"https://github.com/Nosmoht","followers_url":"https://api.github.com/users/Nosmoht/followers","following_url":"https://api.github.com/users/Nosmoht/following{/other_user}","gists_url":"https://api.github.com/users/Nosmoht/gists{/gist_id}","starred_url":"https://api.github.com/users/Nosmoht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nosmoht/subscriptions","organizations_url":"https://api.github.com/users/Nosmoht/orgs","repos_url":"https://api.github.com/users/Nosmoht/repos","events_url":"https://api.github.com/users/Nosmoht/events{/privacy}","received_events_url":"https://api.github.com/users/Nosmoht/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"Nosmoht"}}