terraform/helper/plugin
James Bardin 49439d02d1 sanitize provisioner output strings
The grpc protocol requires strings to be valid utf8, but because
provisioners often don't have control over the command output, invalid
utf8 sequences can make it into the response causing grpc transport
errors.

Replace all invalid utf sequences with the standard utf replacement
character in the provisioner output. The code is a direct copy from the
go1.13 std library, and can be replaced with strings.ToValidUTF8 once
it's available.
2019-11-06 14:57:52 -05:00
..
doc.go helper/plugin package for grpc servers 2018-10-16 18:58:49 -07:00
grpc_provider.go move hcl2shim package to configs 2019-08-06 19:58:58 -04:00
grpc_provider_test.go don't append nil elements to a diagnostic cty.Path 2019-06-25 18:05:51 -04:00
grpc_provisioner.go sanitize provisioner output strings 2019-11-06 14:57:52 -05:00
grpc_provisioner_test.go sanitize provisioner output strings 2019-11-06 14:57:52 -05:00
unknown.go configs/configschema: Introduce the NestingGroup mode for blocks 2019-04-10 14:53:52 -07:00
unknown_test.go switch blocks based on value type, and check attrs 2019-02-08 14:46:29 -05:00