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

config: detect provisioner-only resource in JSON and error [GH-4385] #4746

Merged
merged 1 commit into from
Jan 19, 2016

Conversation

mitchellh
Copy link
Contributor

Fixes #4385

This detects when a very specific kind of JSON config is input to Terraform and shows an error. A potentially better fix would be to modify the HCL AST in Terraform and transform it to the correct one. This would be a lot of effort compared to this when there is a very easy workaround.

I didn't test this since the test case would have to test the error string itself which I don't like, and otherwise with without this fix you get an error, this just improves the error message.

@mitchellh
Copy link
Contributor Author

Whoops some changes I don't want made it in, removing those now.

EDIT: Done.

@phinze
Copy link
Contributor

phinze commented Jan 19, 2016

LGTM

mitchellh added a commit that referenced this pull request Jan 19, 2016
config: detect provisioner-only resource in JSON and error [GH-4385]
@mitchellh mitchellh merged commit 585d094 into master Jan 19, 2016
@mitchellh mitchellh deleted the b-detect-weird-json branch January 19, 2016 20:31
@ghost
Copy link

ghost commented Apr 28, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

json regression? Error loading config: resource needs exactly 2 names
2 participants