1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2024-12-16 09:40:35 +00:00

Add bool2num conversion for missing one_fs_num var

This commit is contained in:
Kris Lamoureux 2020-05-21 16:05:23 -04:00
parent 03c31b78c2
commit f3cd595a8f
Signed by: kris
GPG Key ID: A30022791E1719A4

View File

@ -103,6 +103,7 @@ class rsnapshot::config (
if ! ( $interval and $retain ) {
$interval = pick($hash['interval'], $rsnapshot::params::config_interval)
}
# rsnapshot wants numeric values
if $link_dest {
$link_dest_num = bool2num($link_dest)
@ -113,6 +114,9 @@ class rsnapshot::config (
if $use_lazy_deletes {
$use_lazy_deletes_num = bool2num($use_lazy_deletes)
}
if $one_fs {
$one_fs_num = bool2num($one_fs)
}
$real_include = $rsnapshot::include + $include
unless empty($real_include) {