Skip to content

Commit 69154f8

Browse files
committed
added missing default value handling
1 parent 50c2f3e commit 69154f8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

commands_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,15 @@ func TestShowSchedules(t *testing.T) {
288288
schedule backup@default:
289289
at: daily
290290
permission: auto
291+
log-commands: auto
291292
priority: background
292293
lock-mode: default
293294
capture-environment: RESTIC_*
294295
295296
schedule check@default:
296297
at: weekly
297298
permission: auto
299+
log-commands: auto
298300
priority: background
299301
lock-mode: default
300302
capture-environment: RESTIC_*

config/schedule.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ func (s *ScheduleBaseConfig) init(defaults *ScheduleBaseConfig) {
6767
if s.Log == "" {
6868
s.Log = defaults.Log
6969
}
70+
if s.LogCommands == "" {
71+
s.LogCommands = defaults.LogCommands
72+
}
7073
if s.Priority == "" {
7174
s.Priority = defaults.Priority
7275
}

0 commit comments

Comments
 (0)