Skip to content

Update templatefile function error message to support multiple missing variables. #25424

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jph5396
Copy link

@jph5396 jph5396 commented Jun 29, 2020

In reference to issue #25382, this PR updates the error returned by templatefile when there is more than one undeclared template variable. The new error inform the user of each missing template variable. Previously, the error would only mention one. I added one test relevant to the change and a new test data file for it as well.

Please let me know if any changes need to be made to get this PR approved!

@hashicorp-cla
Copy link

hashicorp-cla commented Jun 29, 2020

CLA assistant check
All committers have signed the CLA.

@jph5396
Copy link
Author

jph5396 commented Jun 29, 2020

Will fix the condition that causes the test to fail.

@jph5396 jph5396 marked this pull request as draft June 29, 2020 02:29
@codecov
Copy link

codecov bot commented Jun 30, 2020

Codecov Report

Merging #25424 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted Files Coverage Δ
lang/funcs/filesystem.go 88.71% <100.00%> (+0.54%) ⬆️
dag/marshal.go 53.33% <0.00%> (-1.12%) ⬇️
backend/remote/backend_common.go 55.25% <0.00%> (+0.67%) ⬆️

@jph5396 jph5396 marked this pull request as ready for review June 30, 2020 20:14
@jph5396
Copy link
Author

jph5396 commented Jun 30, 2020

issue fixed and all tests passed! this is now ready for review.

Base automatically changed from master to main February 24, 2021 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants