Commit 69e0740b authored by Kris's avatar Kris

Properly decode lists into VersionedObjects

parent e5c21548
......@@ -103,10 +103,9 @@ func (s unstructuredJSONScheme) decodeInto(data []byte, obj Object) error {
case *UnstructuredList:
return s.decodeToList(data, x)
case *VersionedObjects:
u := new(Unstructured)
err := s.decodeToUnstructured(data, u)
o, err := s.decode(data)
if err == nil {
x.Objects = []Object{u}
x.Objects = []Object{o}
}
return err
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment