mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 09:25:46 +03:00
plugins: msgpack codec should use cty tags
This commit is contained in:
@@ -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
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user