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

Escape outputs according to variable types #2547

Closed
radeksimko opened this issue Jun 29, 2015 · 2 comments
Closed

Escape outputs according to variable types #2547

radeksimko opened this issue Jun 29, 2015 · 2 comments

Comments

@radeksimko
Copy link
Member

Related to #2503 , #1209 , #2335 and #2390
Currently when output is printed via terraform output or just attached to terraform apply, it is not escaped at all, e.g.

Outputs:

  test-count  = 3
  test-region = us-east-1

I know it would be best to just allow formatting the output as JSON, but at the same time it would be nice to just make the current output format compatible with HCL - i.e. escape output properly per specific type:

https://github.com/hashicorp/hcl/blob/master/hcl/object.go#L15-22

I guess even JSON format will need to take similar approach based on object type, so it probably doesn't make a huge difference whether this is solved via JSON or current HCL format.

@mitchellh
Copy link
Contributor

Outputs aren't really meant to be in any re-consumable format. I'm supportive of a JSON output format for things, but don't think the general human-readable output should be in any such format.

@ghost
Copy link

ghost commented May 1, 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 May 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants