mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-31 11:17:25 -06:00
01cd596c60
This commit changes config parsing from weak decoding lists and maps into []string and map[string]string respectively to decode into []interface{} and map[string]interface{} respectively. This is in order to take advantage of the work integrated in #7082 to defeat the backward compatibility features of the mapstructure library. Test coverage of loading empty variables and validating their default types against expectation.
12 lines
126 B
HCL
12 lines
126 B
HCL
variable "empty_string" {
|
|
default = ""
|
|
}
|
|
|
|
variable "empty_list" {
|
|
default = []
|
|
}
|
|
|
|
variable "empty_map" {
|
|
default = {}
|
|
}
|