mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
49439d02d1
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. |
||
---|---|---|
.. | ||
doc.go | ||
grpc_provider_test.go | ||
grpc_provider.go | ||
grpc_provisioner_test.go | ||
grpc_provisioner.go | ||
unknown_test.go | ||
unknown.go |