{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/42558","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/42558/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/42558/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/42558/events","html_url":"https://github.com/ansible/ansible/pull/42558","id":339730515,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwMzA5ODY0","number":42558,"title":"Fix list k8s objects","user":{"login":"Elettronik","id":1083169,"node_id":"MDQ6VXNlcjEwODMxNjk=","avatar_url":"https://avatars0.githubusercontent.com/u/1083169?v=4","gravatar_id":"","url":"https://api.github.com/users/Elettronik","html_url":"https://github.com/Elettronik","followers_url":"https://api.github.com/users/Elettronik/followers","following_url":"https://api.github.com/users/Elettronik/following{/other_user}","gists_url":"https://api.github.com/users/Elettronik/gists{/gist_id}","starred_url":"https://api.github.com/users/Elettronik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elettronik/subscriptions","organizations_url":"https://api.github.com/users/Elettronik/orgs","repos_url":"https://api.github.com/users/Elettronik/repos","events_url":"https://api.github.com/users/Elettronik/events{/privacy}","received_events_url":"https://api.github.com/users/Elettronik/received_events","type":"User","site_admin":false},"labels":[{"id":947190508,"node_id":"MDU6TGFiZWw5NDcxOTA1MDg=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.7","name":"affects_2.7","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":723150340,"node_id":"MDU6TGFiZWw3MjMxNTAzNDA=","url":"https://api.github.com/repos/ansible/ansible/labels/new_contributor","name":"new_contributor","color":"c2e0c6","default":false},{"id":383076471,"node_id":"MDU6TGFiZWwzODMwNzY0NzE=","url":"https://api.github.com/repos/ansible/ansible/labels/python3","name":"python3","color":"fbca04","default":false},{"id":970086458,"node_id":"MDU6TGFiZWw5NzAwODY0NTg=","url":"https://api.github.com/repos/ansible/ansible/labels/small_patch","name":"small_patch","color":"ededed","default":false},{"id":636352796,"node_id":"MDU6TGFiZWw2MzYzNTI3OTY=","url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-10T07:51:46Z","updated_at":"2018-07-12T19:15:21Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/42558","html_url":"https://github.com/ansible/ansible/pull/42558","diff_url":"https://github.com/ansible/ansible/pull/42558.diff","patch_url":"https://github.com/ansible/ansible/pull/42558.patch"},"body":"##### SUMMARY\r\nWhen the k8s module is used to retrieve object information, it seems to ignore the list suffix to kind attributes.\r\nThis pull fixes the issue\r\n\r\n##### ISSUE TYPE\r\n - Bugfix Pull Request\r\n\r\n##### COMPONENT NAME\r\nk8s_raw\r\n\r\n##### ANSIBLE VERSION\r\n```\r\n ansible 2.6.1\r\n  config file = /home/dev/cluster-dev/ansible/ansible.cfg\r\n  configured module search path = ['/home/dev/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules', '/home/dev/cluster-dev/ansible/library/tools']\r\n  ansible python module location = /home/dev/cluster-dev/dev-env/lib/python3.6/site-packages/ansible\r\n  executable location = /home/dev/cluster-dev/dev-env/bin/ansible\r\n  python version = 3.6.3 (default, Nov 21 2017, 14:55:19) [GCC 6.4.0]\r\n```\r\n\r\n\r\n##### ADDITIONAL INFORMATION\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/404620725","html_url":"https://github.com/ansible/ansible/pull/42558#issuecomment-404620725","issue_url":"https://api.github.com/repos/ansible/ansible/issues/42558","id":404620725,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDYyMDcyNQ==","user":{"login":"fabianvf","id":2431974,"node_id":"MDQ6VXNlcjI0MzE5NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2431974?v=4","gravatar_id":"","url":"https://api.github.com/users/fabianvf","html_url":"https://github.com/fabianvf","followers_url":"https://api.github.com/users/fabianvf/followers","following_url":"https://api.github.com/users/fabianvf/following{/other_user}","gists_url":"https://api.github.com/users/fabianvf/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianvf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianvf/subscriptions","organizations_url":"https://api.github.com/users/fabianvf/orgs","repos_url":"https://api.github.com/users/fabianvf/repos","events_url":"https://api.github.com/users/fabianvf/events{/privacy}","received_events_url":"https://api.github.com/users/fabianvf/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T19:15:21Z","updated_at":"2018-07-12T19:15:21Z","author_association":"CONTRIBUTOR","body":"Rather than adding `list` to the end of the string there, it might make more sense to move the block from line 117 up into that if statement and continue the loop.\r\n\r\nJust a note, we're working on getting *List objects supported in the Python client, at which point this behavior of listing a resource when we get the *List kind will go away entirely, and we would instead process the list like kubectl would. \r\n\r\n If you want to retrieve information about objects in the cluster, the supported ways are either using the [k8s lookup plugin](https://docs.ansible.com/ansible/devel/plugins/lookup/k8s.html) or the [k8s_facts module](https://docs.ansible.com/ansible/devel/modules/k8s_facts_module.html) (which will be added in 2.7)"}}
{"actor":{"display_login":"fabianvf"}}