mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 05:02:50 +00:00
Merge pull request #5013 from smarterclayton/misc_fixup
Small cleanups to a number of client behaviors
This commit is contained in:
@@ -133,7 +133,7 @@ func (r *Result) Object() (runtime.Object, error) {
|
||||
return objects[0], nil
|
||||
}
|
||||
// if the item is a list already, don't create another list
|
||||
if _, err := runtime.GetItemsPtr(objects[0]); err == nil {
|
||||
if runtime.IsListType(objects[0]) {
|
||||
return objects[0], nil
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user