ansible-collections / amazon.aws

Ansible Collection for Amazon AWS
GNU General Public License v3.0
277 stars 321 forks source link

[PR #2068/970c3032 backport][stable-7] iam_managed_policy - fix ParamValidationError during policy deletion #2071

Closed patchback[bot] closed 2 months ago

patchback[bot] commented 2 months ago

This is a backport of PR #2068 as merged into main (970c30329167632e94ecce321cec5a9112757075).

SUMMARY

fixes: #2067 Introduced by #1998

A copy and paste mistake in #1998 resulted in ParamValidationErrors being triggered when deleting a managed policy which is still attached to a role or user.

ISSUE TYPE
COMPONENT NAME

iam_managed_policy plugins/module_utils/iam.py

ADDITIONAL INFORMATION
softwarefactory-project-zuul[bot] commented 2 months ago

Build succeeded (gate pipeline). https://ansible.softwarefactory-project.io/zuul/buildset/8de8b418d36a4c3899df87cb8e7a2766

:heavy_check_mark: ansible-galaxy-importer SUCCESS in 5m 32s :heavy_check_mark: build-ansible-collection SUCCESS in 15m 15s :heavy_check_mark: ansible-test-splitter SUCCESS in 6m 15s :heavy_check_mark: integration-amazon.aws-1 SUCCESS in 13m 19s :heavy_check_mark: integration-amazon.aws-2 SUCCESS in 6m 27s :heavy_check_mark: integration-amazon.aws-3 SUCCESS in 8m 36s :heavy_check_mark: integration-amazon.aws-4 SUCCESS in 5m 11s :heavy_check_mark: integration-community.aws-1 SUCCESS in 24m 51s :heavy_check_mark: integration-community.aws-2 SUCCESS in 7m 57s :heavy_check_mark: integration-community.aws-3 SUCCESS in 5m 44s Skipped 37 jobs