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

ecs_ecr - Use compare_policies instead of naive dict sort #1551

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Oct 7, 2022

Depends-On: #1550

SUMMARY

When comparing policies on the repos ecs_ecr currently uses a very naive sort function. Since we have something more comprehensive, use it.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

plugins/modules/ecs_ecr.py

ADDITIONAL INFORMATION

ecs_ecr is currently the only module using sort_json_policy_dict and it has poor test coverage.

@softwarefactory-project-zuul

This comment was marked as resolved.

@ansibullbot
Copy link

@ansibullbot ansibullbot added community_review feature This issue/PR relates to a feature request module module needs_triage owner_pr PR created by owner/maintainer plugins plugin (any type) labels Oct 7, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 3m 40s
✔️ build-ansible-collection SUCCESS in 5m 20s
ansible-test-sanity-docker-devel FAILURE in 10m 28s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 12m 49s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 11m 29s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 11m 46s
ansible-test-sanity-docker-stable-2.14 FAILURE in 9m 20s (non-voting)
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 7m 26s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 20s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 07s
✔️ ansible-test-splitter SUCCESS in 2m 45s
✔️ integration-community.aws-1 SUCCESS in 6m 05s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

✔️ ansible-galaxy-importer SUCCESS in 4m 25s
✔️ build-ansible-collection SUCCESS in 5m 13s
ansible-test-sanity-docker-devel FAILURE in 11m 21s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 11m 48s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 13m 25s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 11m 24s
ansible-test-sanity-docker-stable-2.14 FAILURE in 9m 04s (non-voting)
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 6m 37s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 10s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 5m 32s
✔️ ansible-test-splitter SUCCESS in 2m 39s
✔️ integration-community.aws-1 SUCCESS in 6m 32s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 021c001 into ansible-collections:main Oct 7, 2022
@tremble tremble deleted the sort_json_policy_dict/ecs_ecr branch February 15, 2023 09:25
abikouo pushed a commit to abikouo/community.aws that referenced this pull request Oct 24, 2023
…ing to pull a list of regions (ansible-collections#1552)

inventory plugins - Hard code fall-back region to connect to when trying to pull a list of regions

SUMMARY
fixes: ansible-collections#1551
If no regions and no region is provided, then botocore will sometimes refuse to connect to the EC2 endpoint for us to then pull a list of regions...
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
aws_ec2 inventory plugin
ADDITIONAL INFORMATION
Nominally botocore should be falling back to a default region, but there are no guarantees

Reviewed-by: Alina Buzachis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_review feature This issue/PR relates to a feature request mergeit Merge the PR (SoftwareFactory) module module needs_triage owner_pr PR created by owner/maintainer plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants