Skip to content

Commit

Permalink
chore: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardomaraschini committed Oct 3, 2023
1 parent 5227604 commit fc4c1a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/helmvm/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/helmvm/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
}

0 comments on commit fc4c1a2

Please sign in to comment.