{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/36315","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/36315/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/36315/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/36315/events","html_url":"https://github.com/ansible/ansible/pull/36315","id":297861987,"number":36315,"title":"remove query/q","user":{"login":"bcoca","id":836171,"avatar_url":"https://avatars1.githubusercontent.com/u/836171?v=4","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"labels":[{"id":48276098,"url":"https://api.github.com/repos/ansible/ansible/labels/bugfix_pull_request","name":"bugfix_pull_request","color":"ded270","default":false},{"id":61436281,"url":"https://api.github.com/repos/ansible/ansible/labels/needs_revision","name":"needs_revision","color":"eb6450","default":false},{"id":636327968,"url":"https://api.github.com/repos/ansible/ansible/labels/support:community","name":"support:community","color":"ededed","default":false},{"id":636352796,"url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false},{"id":468273802,"url":"https://api.github.com/repos/ansible/ansible/labels/test","name":"test","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-16T17:28:03Z","updated_at":"2018-02-19T15:48:11Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/36315","html_url":"https://github.com/ansible/ansible/pull/36315","diff_url":"https://github.com/ansible/ansible/pull/36315.diff","patch_url":"https://github.com/ansible/ansible/pull/36315.patch"},"body":"##### SUMMARY\r\n<!--- Describe the change, including rationale and design decisions -->\r\nretract as current implementation is not working as intended and its too late in the cycle to rework.\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<!--- Name of the module, plugin, module or task -->\r\nquery\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\n2.5\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/366731337","html_url":"https://github.com/ansible/ansible/pull/36315#issuecomment-366731337","issue_url":"https://api.github.com/repos/ansible/ansible/issues/36315","id":366731337,"user":{"login":"bcoca","id":836171,"avatar_url":"https://avatars1.githubusercontent.com/u/836171?v=4","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T15:48:11Z","updated_at":"2018-02-19T15:48:11Z","author_association":"MEMBER","body":"ah, yes, my bad, i was testing with plugin that was itself modified to always return lists. In any case the input is still a problem. Lookup works 'better' in this case as it does not require pythonisms to pass in vars instead of having to force feed lists/dicts inline:\r\n\r\n```\r\nquery('plugin', mylist)\r\n```\r\nwill actually take mylist as a single item while\r\n\r\n```\r\nlookup('plugin', mylist)\r\n```\r\nwill actually correctly use it as a full list.\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"bcoca"}}