From a4da5901b8267d1a7522b443c250db217550354b Mon Sep 17 00:00:00 2001 From: Yujie-Xie <1398010062@qq.com> Date: Mon, 15 Jan 2024 09:40:26 +0800 Subject: [PATCH] fix lint --- pkg/cluster/manager/deploy.go | 4 ++-- pkg/cluster/manager/scale_out.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/cluster/manager/deploy.go b/pkg/cluster/manager/deploy.go index 5deff37386..48b4a64e26 100644 --- a/pkg/cluster/manager/deploy.go +++ b/pkg/cluster/manager/deploy.go @@ -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 { diff --git a/pkg/cluster/manager/scale_out.go b/pkg/cluster/manager/scale_out.go index 20fe23f820..43c6a0ae45 100644 --- a/pkg/cluster/manager/scale_out.go +++ b/pkg/cluster/manager/scale_out.go @@ -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 {