Sorting printer changed

This commit is contained in:
Clayton Coleman 2016-12-10 18:06:26 -05:00
parent d06be8dc1f
commit 42e0eda3e4
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3

View File

@ -106,7 +106,7 @@ func SortObjects(decoder runtime.Decoder, objs []runtime.Object, fieldInput stri
var err error
// decode runtime.Unknown to runtime.Unstructured for sorting.
// we don't actually want the internal versions of known types.
if objs[ix], _, err = decoder.Decode(u.Raw, nil, &runtime.Unstructured{}); err != nil {
if objs[ix], _, err = decoder.Decode(u.Raw, nil, &unstructured.Unstructured{}); err != nil {
return nil, err
}
}