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
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
conversion_test.go
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
datetime_test.go
encoding.go
encoding_test.go
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