Skip to content

Commit c7fc956

Browse files
committed
lint
1 parent ae0889e commit c7fc956

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/autoupdate/agent/updater.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -793,19 +793,22 @@ func (u *Updater) notices(ctx context.Context) error {
793793
return trace.Wrap(err, "failed to query Teleport systemd active status")
794794
}
795795
if !enabled && active {
796+
//nolint:sloglint // sum of constants
796797
u.Log.WarnContext(ctx, "Teleport is installed and started, but not configured to start on boot.\n"+
797798
"After configuring teleport.yaml, you can enable it with:\n"+
798-
"\tsystemctl enable teleport") //nolint:sloglint // sum of constants
799+
"\tsystemctl enable teleport")
799800
}
800801
if !active && enabled {
802+
//nolint:sloglint // sum of constants
801803
u.Log.WarnContext(ctx, "Teleport is installed and enabled at boot, but not running.\n"+
802804
"After configuring teleport.yaml, you can start it with:\n"+
803-
"\tsystemctl start teleport") //nolint:sloglint // sum of constants
805+
"\tsystemctl start teleport")
804806
}
805807
if !active && !enabled {
808+
//nolint:sloglint // sum of constants
806809
u.Log.WarnContext(ctx, "Teleport is installed, but not running or enabled at boot.\n"+
807810
"After configuring teleport.yaml, you can enable and start it with:\n"+
808-
"\tsystemctl enable teleport --now") //nolint:sloglint // sum of constants
811+
"\tsystemctl enable teleport --now")
809812
}
810813
return nil
811814
}

0 commit comments

Comments
 (0)