tpl/collections: Fix merge vs Params

Fixes #6633
This commit is contained in:
Bjørn Erik Pedersen
2019-12-18 21:31:34 +01:00
parent d20ca37005
commit 1b785a7a6d
2 changed files with 15 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ func (ns *Namespace) Merge(src, dst interface{}) (interface{}, error) {
return nil, errors.Errorf("source must be a map, got %T", src)
}
if vsrc.Type() != vdst.Type() {
if vsrc.Type().Key() != vdst.Type().Key() {
return nil, errors.Errorf("incompatible map types, got %T to %T", src, dst)
}