From e8061379051c3923e7d6ac8b7e02e815b915b8ce Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Fri, 9 Aug 2019 16:36:38 -0700 Subject: [PATCH] Really set type --- vendor/github.com/rancher/norman/pkg/types/mapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }