mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #13188 from hurf/label_printer
Auto commit by PR queue bot
This commit is contained in:
commit
f1acdbe3c6
@ -218,11 +218,7 @@ func RunLabel(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []stri
|
|||||||
if outputFormat == "" {
|
if outputFormat == "" {
|
||||||
cmdutil.PrintSuccess(mapper, false, out, info.Mapping.Resource, info.Name, "labeled")
|
cmdutil.PrintSuccess(mapper, false, out, info.Mapping.Resource, info.Name, "labeled")
|
||||||
} else {
|
} else {
|
||||||
printer, err := f.PrinterForMapping(cmd, info.Mapping, false)
|
f.PrintObject(cmd, obj, out)
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return printer.PrintObj(obj, out)
|
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user