From 2b249eee1434b0c48a34dcc37d72397301b6883a Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Mon, 15 Oct 2018 20:03:05 -0700 Subject: [PATCH] plugins: msgpack codec should use cty tags --- plugins/base/plugin.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/base/plugin.go b/plugins/base/plugin.go index 32a369900..05afef607 100644 --- a/plugins/base/plugin.go +++ b/plugins/base/plugin.go @@ -52,7 +52,9 @@ func (p *PluginBase) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, // MsgpackHandle is a shared handle for encoding/decoding of structs var MsgpackHandle = func() *codec.MsgpackHandle { - h := &codec.MsgpackHandle{RawToString: true} + h := &codec.MsgpackHandle{} + h.RawToString = true + h.TypeInfos = codec.NewTypeInfos([]string{"cty", "codec"}) h.MapType = reflect.TypeOf(map[string]interface{}(nil)) return h }()