{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2398","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2398/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2398/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2398/events","html_url":"https://github.com/ansible/ansible-modules-core/pull/2398","id":114637525,"number":2398,"title":"vsphere_guest: add power status to facts","user":{"login":"luto","id":2158203,"avatar_url":"https://avatars.githubusercontent.com/u/2158203?v=3","gravatar_id":"","url":"https://api.github.com/users/luto","html_url":"https://github.com/luto","followers_url":"https://api.github.com/users/luto/followers","following_url":"https://api.github.com/users/luto/following{/other_user}","gists_url":"https://api.github.com/users/luto/gists{/gist_id}","starred_url":"https://api.github.com/users/luto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luto/subscriptions","organizations_url":"https://api.github.com/users/luto/orgs","repos_url":"https://api.github.com/users/luto/repos","events_url":"https://api.github.com/users/luto/events{/privacy}","received_events_url":"https://api.github.com/users/luto/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/cloud","name":"cloud","color":"c7def8"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/community_review","name":"community_review","color":"fad8c7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/feature_pull_request","name":"feature_pull_request","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-02T16:59:32Z","updated_at":"2015-11-25T16:04:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/2398","html_url":"https://github.com/ansible/ansible-modules-core/pull/2398","diff_url":"https://github.com/ansible/ansible-modules-core/pull/2398.diff","patch_url":"https://github.com/ansible/ansible-modules-core/pull/2398.patch"},"body":"This adds the power status (e.g. `POWERED ON`, `SUSPENDED`, etc.) to the facts gathered by `vmware_guest_facts`:\r\n\r\n```yaml\r\n\"ansible_facts\": {\r\n    \"hw_guest_full_name\": \"CentOS 4/5/6 (64-Bit)\", \r\n    \"hw_guest_id\": \"centos64Guest\", \r\n    \"hw_memtotal_mb\": 1024, \r\n    \"hw_name\": \"ml_test_vm\", \r\n    \"hw_power_status\": \"POWERED ON\",  # <<< added\r\n    \"hw_processor_count\": 1, \r\n    \"hw_product_uuid\": \"4206c105-70ce-8545-4513-3fcb2ffedc6e\", \r\n    \"module_hw\": true\r\n}, \r\n```\r\n\r\nSee the [documentation](https://github.com/luto/ansible-modules-core/blob/d5ed8381b66cba47cf3f7f45e30b0da04c26dac5/cloud/vmware/vsphere_guest.py#L269-L284) for details.\r\n\r\nI agree to the [license agreement](http://docs.ansible.com/ansible/community.html#contributors-license-agreement) in the contributor guidelines."},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/159655518","html_url":"https://github.com/ansible/ansible-modules-core/pull/2398#issuecomment-159655518","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2398","id":159655518,"user":{"login":"luto","id":2158203,"avatar_url":"https://avatars.githubusercontent.com/u/2158203?v=3","gravatar_id":"","url":"https://api.github.com/users/luto","html_url":"https://github.com/luto","followers_url":"https://api.github.com/users/luto/followers","following_url":"https://api.github.com/users/luto/following{/other_user}","gists_url":"https://api.github.com/users/luto/gists{/gist_id}","starred_url":"https://api.github.com/users/luto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luto/subscriptions","organizations_url":"https://api.github.com/users/luto/orgs","repos_url":"https://api.github.com/users/luto/repos","events_url":"https://api.github.com/users/luto/events{/privacy}","received_events_url":"https://api.github.com/users/luto/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T16:04:05Z","updated_at":"2015-11-25T16:04:05Z","body":"Do not merge yet, please. This apparently breaks creating VMs."}}