mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
update type-check to use printers.PritnHandler
This commit is contained in:
parent
c53120e6b9
commit
8c9c2ee2d8
@ -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 try to convert to HumanReadablePrinter, if return ok, it must be no generic
|
||||||
// we execute AddHandlers() here before maybeWrapSortingPrinter so that we don't
|
// we execute AddHandlers() here before maybeWrapSortingPrinter so that we don't
|
||||||
// need to convert to delegatePrinter again then invoke AddHandlers()
|
// 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)
|
printersinternal.AddHandlers(humanReadablePrinter)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user