Skip to content

[WIP] cloudfront_distribution - fix Type error when validating distribution origins #540

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

Closed
wants to merge 7 commits into from

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Apr 12, 2021

SUMMARY

fixes: #504
When updating the origin on an existing distribution cloudfront returns a "cloudfront list" rather than the list that the code expected. Resulting in a Type error.

See #504 for more details

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

cloudfront_distribution

ADDITIONAL INFORMATION

Initial work by @flowerysong

flowerysong and others added 7 commits April 11, 2021 21:20
When defining suboptions it will ensure that the entry is there.  BotoCore generally doesn't like None, so we need to purge them.
…meout

add them if the existing configuration had them, otherwise don't.
@ansibullbot
Copy link

@ansibullbot ansibullbot added WIP Work in progress bug This issue/PR relates to a bug has_issue integration tests/integration module module needs_triage plugins plugin (any type) tests tests labels Apr 12, 2021
@tremble
Copy link
Contributor Author

tremble commented Apr 12, 2021

No guarantees on when I'd get the remaining issues fixed. @flowerysong feel free to take this back over if you have chance.

alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request May 25, 2022
…ons#540)

ec2_eni: minor fix: check if private_ip is provided

SUMMARY


Add condition to check if private_ip_address is provided before checking if the address is within the subnet's range to avoid failure on tasks without private_ip_address.
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

ec2_eni
ADDITIONAL INFORMATION



Few integration tests in other modules such as ec2_instance have tasks that use ec2_eni without a private_ip_address parameter causing it to fail.
This check will provide a fix for the bug.

Reviewed-by: Mark Chappell <None>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: None <None>
@tremble
Copy link
Contributor Author

tremble commented Jul 1, 2022

Abandoning this PR, I've not had chance to pick it back up and we're really lacking in tests for it.

@tremble tremble closed this Jul 1, 2022
@tremble tremble deleted the issue_504 branch July 7, 2022 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug has_issue integration tests/integration module module plugins plugin (any type) tests tests WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cloudfront_distribution: Type error when validating distribution origins: "'list' object has no attribute 'get'"
4 participants