Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Yujie-Xie committed Jan 15, 2024
1 parent 4012107 commit a4da590
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/cluster/manager/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ func (m *Manager) Deploy(
sudo = false
hint := fmt.Sprintf("loginctl enable-linger %s", opt.User)

msg := fmt.Sprintf("The value of systemd_mode is set to `user` in the topology, please note that you'll need to manually execute the following command using root or sudo on the host(s) to enable lingering for the systemd user instance.\n")
msg := "The value of systemd_mode is set to `user` in the topology, please note that you'll need to manually execute the following command using root or sudo on the host(s) to enable lingering for the systemd user instance.\n"
msg += color.GreenString(hint)
msg += fmt.Sprint("\nYou can read the systemd documentation for reference: https://wiki.archlinux.org/title/Systemd/User#Automatic_start-up_of_systemd_user_instances.")
msg += "\nYou can read the systemd documentation for reference: https://wiki.archlinux.org/title/Systemd/User#Automatic_start-up_of_systemd_user_instances."
m.logger.Warnf(msg)
err = tui.PromptForConfirmOrAbortError("Do you want to continue? [y/N]: ")
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/cluster/manager/scale_out.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ func (m *Manager) ScaleOut(
if topo.BaseTopo().GlobalOptions.SystemdMode == spec.UserMode {
sudo = false
hint := fmt.Sprintf("loginctl enable-linger %s", opt.User)
msg := fmt.Sprintf("The value of systemd_mode is set to `user` in the topology, please note that you'll need to manually execute the following command using root or sudo on the host(s) to enable lingering for the systemd user instance.\n")
msg := "The value of systemd_mode is set to `user` in the topology, please note that you'll need to manually execute the following command using root or sudo on the host(s) to enable lingering for the systemd user instance.\n"
msg += color.GreenString(hint)
msg += fmt.Sprint("\nYou can read the systemd documentation for reference: https://wiki.archlinux.org/title/Systemd/User#Automatic_start-up_of_systemd_user_instances.")
msg += "\nYou can read the systemd documentation for reference: https://wiki.archlinux.org/title/Systemd/User#Automatic_start-up_of_systemd_user_instances."
m.logger.Warnf(msg)
err = tui.PromptForConfirmOrAbortError("Do you want to continue? [y/N]: ")
if err != nil {
Expand Down

0 comments on commit a4da590

Please sign in to comment.