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

fix list handling #66

Merged

Conversation

wisefool769
Copy link
Contributor

@wisefool769 wisefool769 commented Jan 24, 2025

Fix a bug in generation of terraform config file where list literals are improperly converted to hcl
Fixes #65

Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, @wisefool769 for taking the initiative and filing the PR! The changes are looking good!
But it would be really great if we could verify that this works (and protect us from future regressions) by extending an existing test or writing a new test for this behavior?
Currently, all tests are collected in test_apply.py...

@wisefool769
Copy link
Contributor Author

wisefool769 commented Jan 27, 2025

@alexrashed modified an existing test and confirmed that it catches this bug + that the changeset fixes it.

note that the tests don't actually run with python < 3.12 because they use a newly added option in TemporaryDirectory. I left a comment about it

@alexrashed alexrashed changed the title Wisefool769/fix tflocal list handling fix list handling Jan 28, 2025
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing the comments and adding useful TODOs for future test and compatibility improvements! The changes are looking good, I'll directly merge this and release a new version of tflocal. 🦸🏽 💯

@alexrashed alexrashed merged commit a11c6be into localstack:main Jan 28, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

S3 backend override tf code generated incorrectly
2 participants