mirror of
https://github.com/rancher/steve.git
synced 2025-04-28 11:14:43 +00:00
Move type => _type for k8s objects
This commit is contained in:
parent
965b94a32d
commit
9e67a3ceb8
@ -17,6 +17,10 @@ type defaultMapper struct {
|
||||
}
|
||||
|
||||
func (d *defaultMapper) FromInternal(data map[string]interface{}) {
|
||||
if t, ok := data["type"]; ok {
|
||||
data["_type"] = t
|
||||
}
|
||||
|
||||
if _, ok := data["id"]; ok || data == nil {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user