Skip to content

Commit 0ee843a

Browse files
committed
Fix linters reports
1 parent 5dcfd35 commit 0ee843a

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

mgradm/cmd/backup/backup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2025 SUSE LLC
1+
// SPDX-FileCopyrightText: 2026 SUSE LLC
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

mgradm/cmd/backup/db/disable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func Disable(flags *Flagpole) error {
5555
}
5656

5757
if wasRunning {
58-
log.Info().Msg(L("Starting database..."))
58+
log.Info().Msg(L("Starting database"))
5959
if err := systemd.StartService(podman.DBService); err != nil {
6060
return err
6161
}

mgradm/cmd/backup/db/enable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func Enable(force bool) error {
6363
}
6464

6565
// Prepare initial snapshot. For this container either must be running or we need to start container database
66-
log.Info().Msg(L("Starting database..."))
66+
log.Info().Msg(L("Starting database"))
6767
if err := systemd.StartService(podman.DBService); err != nil {
6868
return err
6969
}

mgradm/cmd/backup/db/rebase.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func Rebase() error {
2525
wasRunning := isRunning != ""
2626

2727
if !wasRunning {
28-
log.Info().Msg(L("Starting database..."))
28+
log.Info().Msg(L("Starting database"))
2929
if err := systemd.StartService(podman.DBService); err != nil {
3030
return err
3131
}
@@ -39,7 +39,7 @@ func Rebase() error {
3939
}
4040

4141
if !wasRunning {
42-
log.Info().Msg(L("Stopping database..."))
42+
log.Info().Msg(L("Stopping database"))
4343
if err := systemd.StopService(podman.DBService); err != nil {
4444
log.Warn().Err(err).Send()
4545
}

mgradm/cmd/backup/db/restore.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func Restore(force bool) error {
3030
return nil
3131
}
3232
}
33-
log.Info().Msg(L("Stopping database service..."))
33+
log.Info().Msg(L("Stopping database service"))
3434
if err := systemd.StopService(podman.DBService); err != nil {
3535
return err
3636
}
@@ -56,7 +56,7 @@ func Restore(force bool) error {
5656
return utils.Error(err, L("failed to generate postgresql restore script"))
5757
}
5858

59-
log.Info().Msg(L("Restoring base backup..."))
59+
log.Info().Msg(L("Restoring base backup"))
6060
if err := podman.RunContainer("uyuni-restore", image, volumes, []string{},
6161
[]string{"bash", "-e", "-c", scriptBuilder.String()}); err != nil {
6262
return err
@@ -70,7 +70,7 @@ func Restore(force bool) error {
7070
return err
7171
}
7272

73-
log.Info().Msg(L("Starting database service..."))
73+
log.Info().Msg(L("Starting database service"))
7474
if err := systemd.StartService(podman.DBService); err != nil {
7575
return err
7676
}
@@ -92,7 +92,7 @@ func Restore(force bool) error {
9292
}
9393

9494
s := spinner.New(spinner.CharSets[14], 100*time.Millisecond)
95-
s.Suffix = L(" Database is recovering... (use Ctrl-C to interrupt waiting)")
95+
s.Suffix = L(" Database is recovering (use Ctrl-C to interrupt waiting)")
9696
s.Start()
9797
for {
9898
if _, err := os.Stat(recoverySignalPath); err != nil {

mgradm/cmd/backup/db/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func Status() error {
3737
}
3838
}
3939
if zerolog.GlobalLevel() < zerolog.WarnLevel {
40-
log.Info().Err(err).Msgf(L("Database continuous backup is %s. Backup volume is %s"), status,
40+
log.Info().Err(err).Msgf(L("Database continuous backup is %[1]s. Backup volume is %[2]s"), status,
4141
utils.VarPgsqlBackupVolumeMount.Name)
4242
} else {
4343
// Assuming this is called by a script when logLevel is higher then info

0 commit comments

Comments
 (0)