-
Notifications
You must be signed in to change notification settings - Fork 340
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
KeyError: 'Description' when deleting transit gateway #2368
Comments
Files identified in the description:
If these files are inaccurate, please update the |
ansibullbot
added
bug
This issue/PR relates to a bug
module
module
needs_triage
plugins
plugin (any type)
python3
traceback
labels
Jul 21, 2023
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Nov 11, 2024
SUMMARY When one or more TGWs exist with an empty description, the module will fail. Fixes #2368 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ec2_transit_gateway ADDITIONAL INFORMATION Apparently, ansible-collections/community.aws#2086 failed to merge, and the ec2_transit_gateway module has now been migrated to amazon.aws. This PR just cherry-picks the commits on top of this repo. Reviewed-by: Alina Buzachis Reviewed-by: GomathiselviS <[email protected]>
patchback bot
pushed a commit
that referenced
this issue
Nov 11, 2024
SUMMARY When one or more TGWs exist with an empty description, the module will fail. Fixes #2368 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ec2_transit_gateway ADDITIONAL INFORMATION Apparently, ansible-collections/community.aws#2086 failed to merge, and the ec2_transit_gateway module has now been migrated to amazon.aws. This PR just cherry-picks the commits on top of this repo. Reviewed-by: Alina Buzachis Reviewed-by: GomathiselviS <[email protected]> (cherry picked from commit 69d81d5)
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Nov 11, 2024
This is a backport of PR #2375 as merged into main (69d81d5). SUMMARY When one or more TGWs exist with an empty description, the module will fail. Fixes #2368 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ec2_transit_gateway ADDITIONAL INFORMATION Apparently, ansible-collections/community.aws#2086 failed to merge, and the ec2_transit_gateway module has now been migrated to amazon.aws. This PR just cherry-picks the commits on top of this repo.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
I am trying to delete a transit gateway using the ec2_transit_gateway module and receiving a
KeyError: 'Description'
when the task is executed.I did find issue ansible-collections/community.aws#68 that is similar to this and is closed. In this comment it was stated that the
Description
key should always be returned, However, if the transit gateway is old enough (I don't know what the exact date of "old enough" is) then theDescription
key is not returned.As an example I have a transit gateway that was created on 2023-03-03 and there is no
Description
key, but a transit gateway that was created today (2023-07-21) does have aDescription
key. Using the AWS CLI (version 2.13.0) to get the information on the transit gateways shows this behavior:Issue Type
Bug Report
Component Name
ec2_transit_gateway
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
Red Hat Enterprise Linux release 8.8 (Ootpa)
Steps to Reproduce
In an AWS region create a transit gateway that does have a description (e.g. the description field is left blank in the AWS web UI) and then create a playbook with the below tasks (ensure to setup AWS authentication). If the region the transit gateway is created in is different than
us-east-1
be sure to update the region in the tasks accordingly.Expected Results
The transit gateway is deleted
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: