opentofu/lang
Alisdair McDiarmid 37006c5841 lang: Fix non-string key panics in map function
The map function assumed that the key arguments were strings, and would
panic if they were not.

After this commit, calling `map(1, 2)` will result in a map `{"1" = 1}`,
and calling `map(null, 1)` will result in a syntax error.

Fixes #23346, fixes #23043
2020-03-04 10:54:55 -05:00
..
blocktoattr vendor: switch to HCL 2.0 in the HCL repository 2019-10-02 15:10:21 -07:00
funcs lang: Fix non-string key panics in map function 2020-03-04 10:54:55 -05:00
testdata/functions-test lang/funcs: Update fileset() function to include path as separate first argument, automatically trim the path argument from results, and ensure results are always canonical with forward slash path separators 2019-08-30 20:19:44 -04:00
data_test.go change lang eval to also only lookup resources 2019-09-19 11:46:09 -04:00
data.go change GetResourceInstance to GetResource 2019-09-19 09:19:14 -04:00
doc.go lang: new package for the runtime parts of the config language 2018-10-16 18:44:26 -07:00
eval_test.go Merge pull request #22846 from hashicorp/jbardin/evaluate-resource 2019-10-08 07:57:15 -04:00
eval.go correctly evaluate self in for_each resources 2019-10-29 12:44:42 -04:00
functions_test.go lang: add setsubtract function (#23424) 2020-02-06 12:49:11 -05:00
functions.go convert cty func calls to stdlib 2020-03-03 15:23:58 -05:00
references.go vendor: switch to HCL 2.0 in the HCL repository 2019-10-02 15:10:21 -07:00
scope.go terraform: ugly huge change to weave in new HCL2-oriented types 2018-10-16 18:46:46 -07:00