From fc4c1a2700714e71c501d9300f53fa5d1f9b92f9 Mon Sep 17 00:00:00 2001 From: Ricardo Maraschini Date: Tue, 3 Oct 2023 19:53:38 +0200 Subject: [PATCH] chore: small fixes --- cmd/helmvm/join.go | 2 +- cmd/helmvm/token.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/helmvm/join.go b/cmd/helmvm/join.go index 341431365..7af486ab5 100644 --- a/cmd/helmvm/join.go +++ b/cmd/helmvm/join.go @@ -64,7 +64,7 @@ var joinCommand = &cli.Command{ return err } logrus.Infof("Creating systemd unit file") - if err := createSystemdUnitFile(c.String("role")); err != nil { + if err := createSystemdUnitFile(hvmtoken.Role); err != nil { err := fmt.Errorf("unable to create systemd unit file: %w", err) metrics.ReportJoinFailed(c.Context, hvmtoken.ClusterID, err) return err diff --git a/cmd/helmvm/token.go b/cmd/helmvm/token.go index 28583a7d3..f6e729de2 100644 --- a/cmd/helmvm/token.go +++ b/cmd/helmvm/token.go @@ -110,7 +110,7 @@ var tokenCreateCommand = &cli.Command{ fmt.Printf("This token is valid for %s hours.\n", dur) fmt.Println("You can now run the following command in a remote node to add it") fmt.Printf("to the cluster as a %q node:\n", role) - fmt.Printf("%s node join %s", defaults.BinaryName(), encodedToken.String()) + fmt.Printf("%s node join %s\n", defaults.BinaryName(), encodedToken.String()) return nil }, }