{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/46148","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/46148/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/46148/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/46148/events","html_url":"https://github.com/ansible/ansible/pull/46148","id":363844006,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4MTc4NTg5","number":46148,"title":"Provide flexibility when retrieving facts","user":{"login":"jose-delarosa","id":3810747,"node_id":"MDQ6VXNlcjM4MTA3NDc=","avatar_url":"https://avatars1.githubusercontent.com/u/3810747?v=4","gravatar_id":"","url":"https://api.github.com/users/jose-delarosa","html_url":"https://github.com/jose-delarosa","followers_url":"https://api.github.com/users/jose-delarosa/followers","following_url":"https://api.github.com/users/jose-delarosa/following{/other_user}","gists_url":"https://api.github.com/users/jose-delarosa/gists{/gist_id}","starred_url":"https://api.github.com/users/jose-delarosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jose-delarosa/subscriptions","organizations_url":"https://api.github.com/users/jose-delarosa/orgs","repos_url":"https://api.github.com/users/jose-delarosa/repos","events_url":"https://api.github.com/users/jose-delarosa/events{/privacy}","received_events_url":"https://api.github.com/users/jose-delarosa/received_events","type":"User","site_admin":false},"labels":[{"id":1043397454,"node_id":"MDU6TGFiZWwxMDQzMzk3NDU0","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.8","name":"affects_2.8","color":"ededed","default":false},{"id":785271699,"node_id":"MDU6TGFiZWw3ODUyNzE2OTk=","url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":499433698,"node_id":"MDU6TGFiZWw0OTk0MzM2OTg=","url":"https://api.github.com/repos/ansible/ansible/labels/owner_pr","name":"owner_pr","color":"0e8a16","default":false},{"id":636327968,"node_id":"MDU6TGFiZWw2MzYzMjc5Njg=","url":"https://api.github.com/repos/ansible/ansible/labels/support:community","name":"support:community","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-09-26T03:26:49Z","updated_at":"2018-10-10T21:28:23Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/46148","html_url":"https://github.com/ansible/ansible/pull/46148","diff_url":"https://github.com/ansible/ansible/pull/46148.diff","patch_url":"https://github.com/ansible/ansible/pull/46148.patch"},"body":"##### SUMMARY\r\n<!--- Describe the change below, including rationale and design decisions -->\r\nProvides flexibility when retrieving facts by not assuming that certains keys exist. Checks first if key exists before attempting to read from it.\r\n<!--- HINT: Include \"Fixes #nnn\" if you are fixing an existing issue -->\r\nFixes https://github.com/ansible/ansible/issues/45248\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest -->\r\n- Bugfix Pull Request\r\n\r\n\r\n##### COMPONENT NAME\r\n<!--- Write the short name of the module, plugin, task or feature below -->\r\nredfish_utils\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from \"ansible --version\" between quotes -->\r\n```paste below\r\nansible 2.8.0.dev0 (fix-key-not-found a233088725) last updated 2018/09/25 22:22:07 (GMT -500)\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /share1/git/ansible/lib/ansible\r\n  executable location = /share1/git/ansible/bin/ansible\r\n  python version = 2.7.5 (default, May 31 2018, 09:41:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]\r\n\r\n```\r\n\r\n##### ADDITIONAL INFORMATION\r\n<!--- Include additional information to help people understand the change here -->\r\n<!--- A step-by-step reproduction of the problem is helpful if there is no related issue -->\r\n\r\nCleaner code\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/428738595","html_url":"https://github.com/ansible/ansible/pull/46148#issuecomment-428738595","issue_url":"https://api.github.com/repos/ansible/ansible/issues/46148","id":428738595,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODczODU5NQ==","user":{"login":"jose-delarosa","id":3810747,"node_id":"MDQ6VXNlcjM4MTA3NDc=","avatar_url":"https://avatars1.githubusercontent.com/u/3810747?v=4","gravatar_id":"","url":"https://api.github.com/users/jose-delarosa","html_url":"https://github.com/jose-delarosa","followers_url":"https://api.github.com/users/jose-delarosa/followers","following_url":"https://api.github.com/users/jose-delarosa/following{/other_user}","gists_url":"https://api.github.com/users/jose-delarosa/gists{/gist_id}","starred_url":"https://api.github.com/users/jose-delarosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jose-delarosa/subscriptions","organizations_url":"https://api.github.com/users/jose-delarosa/orgs","repos_url":"https://api.github.com/users/jose-delarosa/repos","events_url":"https://api.github.com/users/jose-delarosa/events{/privacy}","received_events_url":"https://api.github.com/users/jose-delarosa/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T21:28:23Z","updated_at":"2018-10-10T21:28:23Z","author_association":"CONTRIBUTOR","body":"bot_status"}}
{"actor":{"display_login":"jose-delarosa"}}