kubectl: remove unnecessary internal->external conversion before PrintObj

This commit is contained in:
Sean Sullivan
2018-10-31 16:50:26 -07:00
parent 879312205f
commit 68cea87cfd
11 changed files with 13 additions and 57 deletions

View File

@@ -164,7 +164,7 @@ func (o PauseOptions) RunPause() error {
allErrs = append(allErrs, err)
continue
}
if err = printer.PrintObj(cmdutil.AsDefaultVersionedOrOriginal(info.Object, info.Mapping), o.Out); err != nil {
if err = printer.PrintObj(info.Object, o.Out); err != nil {
allErrs = append(allErrs, err)
}
continue
@@ -182,7 +182,7 @@ func (o PauseOptions) RunPause() error {
allErrs = append(allErrs, err)
continue
}
if err = printer.PrintObj(cmdutil.AsDefaultVersionedOrOriginal(info.Object, info.Mapping), o.Out); err != nil {
if err = printer.PrintObj(info.Object, o.Out); err != nil {
allErrs = append(allErrs, err)
}
}