terraform/lang/funcs
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
..
testdata lang/funcs: templatefile function 2018-12-21 08:06:14 -08:00
cidr.go lang/funcs: cidrsubnets function 2019-09-20 15:58:01 -07:00
cidr_test.go lang/funcs: cidrsubnets function 2019-09-20 15:58:01 -07:00
collection.go lang: Fix non-string key panics in map function 2020-03-04 10:54:55 -05:00
collection_test.go lang: Fix non-string key panics in map function 2020-03-04 10:54:55 -05:00
conversion.go lang/funcs: Type conversion functions 2019-01-17 10:01:47 -08:00
conversion_test.go lang/funcs: Type conversion functions 2019-01-17 10:01:47 -08:00
crypto.go remove satori/go.uuid in favor of google/uuid 2019-08-09 15:09:41 -04:00
crypto_test.go lang/funcs: New "uuidv5" function 2019-06-07 14:38:22 -07:00
datetime.go cleanup comments for nicer godocs 2018-10-16 18:49:20 -07:00
datetime_test.go cleanup comments for nicer godocs 2018-10-16 18:49:20 -07:00
encoding.go base64decode: check that the decoded (not encoded) string is valid UTF-8 2018-10-16 18:49:20 -07:00
encoding_test.go base64decodeFunc now checks for valid UTF-8 2018-10-16 18:49:20 -07:00
filesystem.go lang/funcs: templatefile requires valid variable names 2020-02-25 10:19:46 -05:00
filesystem_test.go Merge pull request #24265 from hashicorp/jbardin/cty-update 2020-03-04 09:33:51 -05:00
number.go remove old funcs code 2020-03-03 15:23:58 -05:00
number_test.go remove old funcs code 2020-03-03 15:23:58 -05:00
string.go remove old funcs code 2020-03-03 15:23:58 -05:00
string_test.go remove old funcs code 2020-03-03 15:23:58 -05:00