diff --git a/vendor/github.com/rancher/norman/pkg/types/mapper.go b/vendor/github.com/rancher/norman/pkg/types/mapper.go index 3045bba..847d935 100644 --- a/vendor/github.com/rancher/norman/pkg/types/mapper.go +++ b/vendor/github.com/rancher/norman/pkg/types/mapper.go @@ -91,7 +91,7 @@ func (t *typeMapper) FromInternal(data map[string]interface{}) { } if t.root { - if _, ok := data["type"]; ok { + if _, ok := data["type"]; !ok { data["type"] = t.typeName } }