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

Gracefully handle empty snippets #61

Merged
merged 1 commit into from
May 13, 2020
Merged

Gracefully handle empty snippets #61

merged 1 commit into from
May 13, 2020

Conversation

invidian
Copy link
Contributor

@invidian invidian commented May 11, 2020

If snippet in Terraform code is optional, for example when ternary
operator is used, then provider is not able to handle at the moment and
crashes, trying to cast 'nil' interface into string.

This commit changes the logic to prevent that and makes that only non
'nil' snippets will be used.

Signed-off-by: Mateusz Gozdek mateusz@kinvolk.io

If snippet in Terraform code is optional, for example when ternary
operator is used, then provider is not able to handle at the moment and
crashes, trying to cast 'nil' interface into string.

This commit changes the logic to prevent that and makes that only non
'nil' snippets will be used.

Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
@dghubble dghubble merged commit 6d2e188 into poseidon:master May 13, 2020
@dghubble
Copy link
Member

Thanks!

@invidian invidian deleted the invidian/empty-snippets-handling branch May 13, 2020 07:10
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.

2 participants