Merge pull request #5013 from smarterclayton/misc_fixup

Small cleanups to a number of client behaviors
This commit is contained in:
Brendan Burns
2015-03-06 15:41:34 +01:00
17 changed files with 103 additions and 88 deletions

View File

@@ -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
}
}