From 8cc52ee0fa34a63ae60e5df6c28fc80a4b1cb7f0 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Fri, 12 Apr 2024 16:10:43 +0000 Subject: [PATCH] Fix subcommand mapping for `rke2 certificate` Signed-off-by: Brad Davidson --- pkg/cli/cmds/cert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cli/cmds/cert.go b/pkg/cli/cmds/cert.go index 6dfb60d6c1..7b24a34cf9 100644 --- a/pkg/cli/cmds/cert.go +++ b/pkg/cli/cmds/cert.go @@ -48,7 +48,7 @@ func NewCertCommand() cli.Command { }, } - command := cmds.NewCertCommands(Rotate, cert.RotateCA, cert.Check) + command := cmds.NewCertCommands(cert.Check, Rotate, cert.RotateCA) command.Usage = "Manage RKE2 certificates" configfilearg.DefaultParser.ValidFlags[command.Name] = command.Flags for i, subcommand := range command.Subcommands {