update type-check to use printers.PritnHandler

This commit is contained in:
juanvallejo 2017-11-01 14:37:43 -04:00
parent c53120e6b9
commit 8c9c2ee2d8
No known key found for this signature in database
GPG Key ID: 7D2C958002D6448D

View File

@ -93,7 +93,7 @@ func printerForOptions(mapper meta.RESTMapper, typer runtime.ObjectTyper, encode
// we try to convert to HumanReadablePrinter, if return ok, it must be no generic
// we execute AddHandlers() here before maybeWrapSortingPrinter so that we don't
// need to convert to delegatePrinter again then invoke AddHandlers()
if humanReadablePrinter, ok := printer.(*printers.HumanReadablePrinter); ok {
if humanReadablePrinter, ok := printer.(printers.PrintHandler); ok {
printersinternal.AddHandlers(humanReadablePrinter)
}