{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/39781","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/39781/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/39781/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/39781/events","html_url":"https://github.com/ansible/ansible/pull/39781","id":320635741,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg2MjMwNDIy","number":39781,"title":"Fixes #37752 Delete all versions and deletemarkers in S3_Bucket when force paramet…","user":{"login":"gjtempleton","id":6452486,"node_id":"MDQ6VXNlcjY0NTI0ODY=","avatar_url":"https://avatars2.githubusercontent.com/u/6452486?v=4","gravatar_id":"","url":"https://api.github.com/users/gjtempleton","html_url":"https://github.com/gjtempleton","followers_url":"https://api.github.com/users/gjtempleton/followers","following_url":"https://api.github.com/users/gjtempleton/following{/other_user}","gists_url":"https://api.github.com/users/gjtempleton/gists{/gist_id}","starred_url":"https://api.github.com/users/gjtempleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjtempleton/subscriptions","organizations_url":"https://api.github.com/users/gjtempleton/orgs","repos_url":"https://api.github.com/users/gjtempleton/repos","events_url":"https://api.github.com/users/gjtempleton/events{/privacy}","received_events_url":"https://api.github.com/users/gjtempleton/received_events","type":"User","site_admin":false},"labels":[{"id":835286067,"node_id":"MDU6TGFiZWw4MzUyODYwNjc=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.6","name":"affects_2.6","color":"ededed","default":false},{"id":379680333,"node_id":"MDU6TGFiZWwzNzk2ODAzMzM=","url":"https://api.github.com/repos/ansible/ansible/labels/aws","name":"aws","color":"c5def5","default":false},{"id":785271699,"node_id":"MDU6TGFiZWw3ODUyNzE2OTk=","url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":61528803,"node_id":"MDU6TGFiZWw2MTUyODgwMw==","url":"https://api.github.com/repos/ansible/ansible/labels/cloud","name":"cloud","color":"c7def8","default":false},{"id":513652538,"node_id":"MDU6TGFiZWw1MTM2NTI1Mzg=","url":"https://api.github.com/repos/ansible/ansible/labels/core_review","name":"core_review","color":"ededed","default":false},{"id":496359346,"node_id":"MDU6TGFiZWw0OTYzNTkzNDY=","url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":723150340,"node_id":"MDU6TGFiZWw3MjMxNTAzNDA=","url":"https://api.github.com/repos/ansible/ansible/labels/new_contributor","name":"new_contributor","color":"c2e0c6","default":false},{"id":581543918,"node_id":"MDU6TGFiZWw1ODE1NDM5MTg=","url":"https://api.github.com/repos/ansible/ansible/labels/stale_ci","name":"stale_ci","color":"fef2c0","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":4,"created_at":"2018-05-06T22:42:27Z","updated_at":"2018-07-18T12:38:34Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/39781","html_url":"https://github.com/ansible/ansible/pull/39781","diff_url":"https://github.com/ansible/ansible/pull/39781.diff","patch_url":"https://github.com/ansible/ansible/pull/39781.patch"},"body":"…er is passed\r\n\r\n##### SUMMARY\r\n<!--- Describe the change, including rationale and design decisions -->\r\nCreates a new method `paginated_versions_list` in the s3_bucket module to return a more complex list of tuples of object `Key` and `VersionId`s including those of `DeleteMarker`s for all items in the bucket. Then uses this to generate the list of objects to be deleted to allow the `force: true` parameter to handle buckets with versioning turned on successfully.\r\n<!--- If you are fixing an existing issue, please include \"Fixes #nnn\" in your\r\ncommit message and your description; but you should still explain what\r\nthe change does.-->\r\nFixes #37752 by deleting all object versions and `DeleteMarker`s before attempting bucket deletion\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bugfix Pull Request\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the module, plugin, module or task -->\r\ns3_bucket\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\nansible 2.6.0\r\n```\r\n\r\n\r\n##### ADDITIONAL INFORMATION\r\n<!--- Include additional information to help people understand the change here.\r\nFor bugs that don't have a linked bug report, a step-by-step reproduction\r\nof the problem is helpful. -->\r\n\r\n<!--- Paste verbatim command output below, e.g. before and after your change -->\r\n```\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/405915990","html_url":"https://github.com/ansible/ansible/pull/39781#issuecomment-405915990","issue_url":"https://api.github.com/repos/ansible/ansible/issues/39781","id":405915990,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTkxNTk5MA==","user":{"login":"ryansb","id":636610,"node_id":"MDQ6VXNlcjYzNjYxMA==","avatar_url":"https://avatars1.githubusercontent.com/u/636610?v=4","gravatar_id":"","url":"https://api.github.com/users/ryansb","html_url":"https://github.com/ryansb","followers_url":"https://api.github.com/users/ryansb/followers","following_url":"https://api.github.com/users/ryansb/following{/other_user}","gists_url":"https://api.github.com/users/ryansb/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansb/subscriptions","organizations_url":"https://api.github.com/users/ryansb/orgs","repos_url":"https://api.github.com/users/ryansb/repos","events_url":"https://api.github.com/users/ryansb/events{/privacy}","received_events_url":"https://api.github.com/users/ryansb/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T12:38:34Z","updated_at":"2018-07-18T12:38:34Z","author_association":"MEMBER","body":"rebuild_merge"}}
{"actor":{"display_login":"ryansb"}}