Skip to content

Commit

Permalink
[BUGFIX] Empty backup time yields missing hour
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaswolf committed Jan 16, 2019
1 parent e02355f commit e58114e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/borgmatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
- name: Add cron-job for borgmatic
cron:
name: "borgmatic"
hour: "{{ borgmatic_cron_time.split(':')[0] | default(4 | random) }}"
hour: "{{ borgmatic_cron_time.split(':')[0] | default(4 | random, true) }}"
minute: "{{ borgmatic_cron_time.split(':')[1] | default(59 | random) }}"
user: "root"
cron_file: borgmatic
Expand Down

0 comments on commit e58114e

Please sign in to comment.