{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3473","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3473/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3473/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3473/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/3473","id":189360043,"number":3473,"title":"ec2_snapshot_facts broken filter","user":{"login":"hyperized","id":827954,"avatar_url":"https://avatars.githubusercontent.com/u/827954?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperized","html_url":"https://github.com/hyperized","followers_url":"https://api.github.com/users/hyperized/followers","following_url":"https://api.github.com/users/hyperized/following{/other_user}","gists_url":"https://api.github.com/users/hyperized/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperized/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperized/subscriptions","organizations_url":"https://api.github.com/users/hyperized/orgs","repos_url":"https://api.github.com/users/hyperized/repos","events_url":"https://api.github.com/users/hyperized/events{/privacy}","received_events_url":"https://api.github.com/users/hyperized/received_events","type":"User","site_admin":false},"labels":[{"id":382551938,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/aws","name":"aws","color":"c5def5","default":false},{"id":132898023,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":132898074,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/cloud","name":"cloud","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-15T10:55:13Z","updated_at":"2016-11-15T11:03:11Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\nec2_snapshot_facts\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.2.0.0\r\n```\r\n\r\n##### CONFIGURATION\r\nn/a\r\n\r\n##### OS / ENVIRONMENT\r\nn/a\r\n\r\n##### SUMMARY\r\nWhen running the ec2_snapshot_facts task with a owner filter the module breaks.\r\n\r\n##### STEPS TO REPRODUCE\r\nOwner ID is real and correct, but obscured for the purpose of this issue.\r\n\r\n```\r\n- hosts: localhost\r\n  tasks:\r\n    - name: obtain snapshot facts\r\n      ec2_snapshot_facts:\r\n        region: eu-west-1\r\n        owner_ids:\r\n          - 8511611*****\r\n```\r\nAnd:\r\n```\r\n- hosts: localhost\r\n  tasks:\r\n    - name: obtain snapshot facts\r\n      ec2_snapshot_facts:\r\n        region: eu-west-1\r\n        filters:\r\n          owner-id: 8511611*****\r\n```\r\nBoth result in:\r\n```\r\nAn exception occurred during task execution. The full traceback is:\r\nTraceback (most recent call last):\r\n  File \"/tmp/ansible_0DXdpa/ansible_module_ec2_snapshot_facts.py\", line 229, in <module>\r\n    main()\r\n  File \"/tmp/ansible_0DXdpa/ansible_module_ec2_snapshot_facts.py\", line 225, in main\r\n    list_ec2_snapshots(connection, module)\r\n  File \"/tmp/ansible_0DXdpa/ansible_module_ec2_snapshot_facts.py\", line 180, in list_ec2_snapshots\r\n    snapshots = connection.describe_snapshots(SnapshotIds=snapshot_ids, OwnerIds=owner_ids, RestorableByUserIds=restorable_by_user_ids, Filters=filters)\r\n  File \"/usr/local/lib/python2.7/dist-packages/botocore/client.py\", line 251, in _api_call\r\n    return self._make_api_call(operation_name, kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/botocore/client.py\", line 513, in _make_api_call\r\n    api_params, operation_model, context=request_context)\r\n  File \"/usr/local/lib/python2.7/dist-packages/botocore/client.py\", line 566, in _convert_to_request_dict\r\n    api_params, operation_model)\r\n  File \"/usr/local/lib/python2.7/dist-packages/botocore/validate.py\", line 270, in serialize_to_request\r\n    raise ParamValidationError(report=report.generate_report())\r\nbotocore.exceptions.ParamValidationError: Parameter validation failed:\r\nInvalid type for parameter Filters[0].Values, value: 8511611*****, type: <type 'int'>, valid types: <type 'list'>, <type 'tuple'>\r\n\r\nfatal: [localhost]: FAILED! => {\r\n    \"changed\": false,\r\n    \"failed\": true,\r\n    \"invocation\": {\r\n        \"module_name\": \"ec2_snapshot_facts\"\r\n    },\r\n    \"module_stderr\": \"Traceback (most recent call last):\\n  File \\\"/tmp/ansible_0DXdpa/ansible_module_ec2_snapshot_facts.py\\\", line 229, in <module>\\n    main()\\n  File \\\"/tmp/ansible_0DXdpa/ansible_module_ec2_snapshot_facts.py\\\", line 225, in main\\n    list_ec2_snapshots(connection, module)\\n  File \\\"/tmp/ansible_0DXdpa/ansible_module_ec2_snapshot_facts.py\\\", line 180, in list_ec2_snapshots\\n    snapshots = connection.describe_snapshots(SnapshotIds=snapshot_ids, OwnerIds=owner_ids, RestorableByUserIds=restorable_by_user_ids, Filters=filters)\\n  File \\\"/usr/local/lib/python2.7/dist-packages/botocore/client.py\\\", line 251, in _api_call\\n    return self._make_api_call(operation_name, kwargs)\\n  File \\\"/usr/local/lib/python2.7/dist-packages/botocore/client.py\\\", line 513, in _make_api_call\\n    api_params, operation_model, context=request_context)\\n  File \\\"/usr/local/lib/python2.7/dist-packages/botocore/client.py\\\", line 566, in _convert_to_request_dict\\n    api_params, operation_model)\\n  File \\\"/usr/local/lib/python2.7/dist-packages/botocore/validate.py\\\", line 270, in serialize_to_request\\n    raise ParamValidationError(report=report.generate_report())\\nbotocore.exceptions.ParamValidationError: Parameter validation failed:\\nInvalid type for parameter Filters[0].Values, value: 8511611*****, type: <type 'int'>, valid types: <type 'list'>, <type 'tuple'>\\n\",\r\n    \"module_stdout\": \"\",\r\n    \"msg\": \"MODULE FAILURE\"\r\n```\r\n\r\n##### EXPECTED RESULTS\r\nIt results in a OK.\r\n\r\n##### ACTUAL RESULTS\r\nIt results in a FAILED."},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/260612420","html_url":"https://github.com/ansible/ansible-modules-extras/issues/3473#issuecomment-260612420","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3473","id":260612420,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T11:03:10Z","updated_at":"2016-11-15T11:03:10Z","body":"<!-- @hyperized: Thanks for filing this bug report! -->\n@wimnat ping, this issue is waiting for your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_bug_new --->"}}
{"actor":{"display_login":"ansibot"}}