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.go | ||
grpc_provider_test.go | ||
grpc_provisioner.go | ||
grpc_provisioner_test.go | ||
unknown.go | ||
unknown_test.go |