fix: Render special chars in variables' default value properly (#284)

* Fix: No longer crashes when there are special chars in a variable default

* Do not escape chars everywhere

* Cleanup go.mod
This commit is contained in:
Julien Duchesne
2020-07-17 13:13:50 -04:00
committed by GitHub
parent f71c2a360c
commit 52653b5107
181 changed files with 998 additions and 64 deletions

View File

@@ -6,7 +6,7 @@ variable "bool-3" {
variable "bool-2" {
description = "It's bool number two."
default = false
default = false
}
// It's bool number one.
@@ -28,6 +28,10 @@ variable "string-1" {
default = "bar"
}
variable "string-special-chars" {
default = "\\.<>[]{}_-"
}
variable "number-3" {
type = number
default = "19"
@@ -102,7 +106,7 @@ default = [
]
```
EOD
default = [
default = [
"name rack:location"
]
}
@@ -156,7 +160,7 @@ variable "string_default_null" {
}
variable "string_no_default" {
type = string
type = string
}
variable "number_default_zero" {