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 panic on empty backend in Config() #1040

Merged
merged 2 commits into from Jan 21, 2021

Conversation

syndicut
Copy link
Contributor

@syndicut syndicut commented Jan 21, 2021

Config() method causes panic when used in plugins if backend config is non-existent

Related:
terraform-linters/tflint-plugin-sdk#95

@syndicut
Copy link
Contributor Author

sorry, didn't see #1036 already addressing it. My fix includes test, though =) And I think returning empty structure is more "in line" with other methods.

@syndicut
Copy link
Contributor Author

sorry, didn't see #1036 already addressing it. My fix includes test, though =) And I think returning empty structure is more "in line" with other methods.

changed my mind about nil, empty structure causes errors

Copy link
Member

@wata727 wata727 left a comment

Choose a reason for hiding this comment

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

👍

@wata727 wata727 merged commit a810d3d into terraform-linters:master Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants