Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fail method that knows how to handle AnsibleAWSErrors #1997

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Feb 27, 2024

SUMMARY

Adds fail_json_aws_error() to AnsibeAWSModule this is just a simple wrapper around fail_json() and fail_json_aws() that knows how to route AnsibleAWSError exceptions (with and without triggering exceptions)

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

module_utils/modules

ADDITIONAL INFORMATION

Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/89b6e149f4764daa996e6b05b6c59a01

✔️ ansible-galaxy-importer SUCCESS in 5m 20s
✔️ build-ansible-collection SUCCESS in 14m 52s
✔️ ansible-test-splitter SUCCESS in 5m 23s
✔️ integration-amazon.aws-1 SUCCESS in 22m 21s
✔️ integration-amazon.aws-2 SUCCESS in 34m 04s
✔️ integration-amazon.aws-3 SUCCESS in 20m 53s
✔️ integration-amazon.aws-4 SUCCESS in 35m 40s
✔️ integration-amazon.aws-5 SUCCESS in 35m 28s
✔️ integration-amazon.aws-6 SUCCESS in 38m 44s
✔️ integration-amazon.aws-7 SUCCESS in 19m 34s
✔️ integration-amazon.aws-8 SUCCESS in 33m 49s
✔️ integration-amazon.aws-9 SUCCESS in 41m 18s
✔️ integration-amazon.aws-10 SUCCESS in 35m 40s
✔️ integration-amazon.aws-11 SUCCESS in 37m 00s
integration-amazon.aws-12 RETRY_LIMIT in 1m 41s
✔️ integration-amazon.aws-13 SUCCESS in 25m 42s
✔️ integration-amazon.aws-14 SUCCESS in 23m 55s
✔️ integration-amazon.aws-15 SUCCESS in 45m 30s
✔️ integration-amazon.aws-16 SUCCESS in 59m 49s
✔️ integration-amazon.aws-17 SUCCESS in 36m 58s
✔️ integration-amazon.aws-18 SUCCESS in 40m 34s
✔️ integration-amazon.aws-19 SUCCESS in 33m 14s
✔️ integration-amazon.aws-20 SUCCESS in 18m 29s
✔️ integration-amazon.aws-21 SUCCESS in 35m 52s
integration-amazon.aws-22 RETRY_LIMIT in 1m 38s
Skipped 22 jobs

@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Feb 27, 2024
Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 10s
✔️ build-ansible-collection SUCCESS in 15m 50s
✔️ ansible-test-splitter SUCCESS in 6m 09s
✔️ integration-amazon.aws-1 SUCCESS in 21m 35s
✔️ integration-amazon.aws-2 SUCCESS in 29m 40s
✔️ integration-amazon.aws-3 SUCCESS in 19m 03s
✔️ integration-amazon.aws-4 SUCCESS in 29m 33s
✔️ integration-amazon.aws-5 SUCCESS in 29m 01s
✔️ integration-amazon.aws-6 SUCCESS in 41m 19s
✔️ integration-amazon.aws-7 SUCCESS in 18m 17s
✔️ integration-amazon.aws-8 SUCCESS in 38m 24s
✔️ integration-amazon.aws-9 SUCCESS in 39m 47s
✔️ integration-amazon.aws-10 SUCCESS in 33m 46s
✔️ integration-amazon.aws-11 SUCCESS in 38m 13s
✔️ integration-amazon.aws-12 SUCCESS in 12m 13s
✔️ integration-amazon.aws-13 SUCCESS in 21m 40s
✔️ integration-amazon.aws-14 SUCCESS in 23m 26s
✔️ integration-amazon.aws-15 SUCCESS in 46m 57s
✔️ integration-amazon.aws-16 SUCCESS in 51m 41s
✔️ integration-amazon.aws-17 SUCCESS in 42m 14s
✔️ integration-amazon.aws-18 SUCCESS in 36m 56s
✔️ integration-amazon.aws-19 SUCCESS in 25m 02s
✔️ integration-amazon.aws-20 SUCCESS in 19m 15s
✔️ integration-amazon.aws-21 SUCCESS in 37m 46s
✔️ integration-amazon.aws-22 SUCCESS in 25m 48s
Skipped 22 jobs

Copy link
Contributor

Pull request merge failed: Required status check "ansible/gate" is expected.

@tremble tremble added backport-7 PR should be backported to the stable-7 branch mergeit Merge the PR (SoftwareFactory) and removed mergeit Merge the PR (SoftwareFactory) labels Feb 27, 2024
@tremble tremble added mergeit Merge the PR (SoftwareFactory) and removed mergeit Merge the PR (SoftwareFactory) labels Feb 27, 2024
Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 24s
✔️ build-ansible-collection SUCCESS in 15m 28s
✔️ ansible-test-splitter SUCCESS in 6m 47s
✔️ integration-amazon.aws-1 SUCCESS in 21m 46s
✔️ integration-amazon.aws-2 SUCCESS in 1h 00m 25s
✔️ integration-amazon.aws-3 SUCCESS in 19m 08s
✔️ integration-amazon.aws-4 SUCCESS in 30m 29s
✔️ integration-amazon.aws-5 SUCCESS in 33m 18s
✔️ integration-amazon.aws-6 SUCCESS in 36m 52s
✔️ integration-amazon.aws-7 SUCCESS in 16m 01s
✔️ integration-amazon.aws-8 SUCCESS in 36m 17s
✔️ integration-amazon.aws-9 SUCCESS in 39m 57s
✔️ integration-amazon.aws-10 SUCCESS in 31m 58s
✔️ integration-amazon.aws-11 SUCCESS in 40m 05s
✔️ integration-amazon.aws-12 SUCCESS in 15m 15s
✔️ integration-amazon.aws-13 SUCCESS in 24m 23s
✔️ integration-amazon.aws-14 SUCCESS in 25m 56s
✔️ integration-amazon.aws-15 SUCCESS in 40m 54s
✔️ integration-amazon.aws-16 SUCCESS in 49m 12s
✔️ integration-amazon.aws-17 SUCCESS in 41m 41s
✔️ integration-amazon.aws-18 SUCCESS in 36m 49s
✔️ integration-amazon.aws-19 SUCCESS in 37m 29s
✔️ integration-amazon.aws-20 SUCCESS in 19m 44s
✔️ integration-amazon.aws-21 SUCCESS in 35m 27s
✔️ integration-amazon.aws-22 SUCCESS in 25m 17s
Skipped 22 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit b251003 into ansible-collections:main Feb 27, 2024
39 of 41 checks passed
Copy link

patchback bot commented Feb 27, 2024

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/b251003868df5d6de5fafdc000c45293d6b73e1f/pr-1997

Backported as #2002

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Feb 27, 2024
Add fail method that knows how to handle AnsibleAWSErrors

SUMMARY
Adds fail_json_aws_error() to AnsibeAWSModule this is just a simple wrapper around fail_json() and fail_json_aws() that knows how to route AnsibleAWSError exceptions (with and without triggering exceptions)
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
module_utils/modules
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
(cherry picked from commit b251003)
@tremble tremble deleted the modules/awserror branch February 27, 2024 15:40
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Feb 27, 2024
)

[PR #1997/b2510038 backport][stable-7] Add fail method that knows how to handle AnsibleAWSErrors

This is a backport of PR #1997 as merged into main (b251003).
SUMMARY
Adds fail_json_aws_error() to AnsibeAWSModule this is just a simple wrapper around fail_json() and fail_json_aws() that knows how to route AnsibleAWSError exceptions (with and without triggering exceptions)
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
module_utils/modules
ADDITIONAL INFORMATION

Reviewed-by: Mark Chappell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7 PR should be backported to the stable-7 branch mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants