1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2024-11-14 01:00:34 +00:00

minor changes

This commit is contained in:
Norbert Varzariu 2015-12-19 22:57:56 +01:00
parent ac28d614de
commit 3d60cff446

View File

@ -74,8 +74,8 @@ class rsnapshot::config (
$logfile = "${logpath}/${host}.log" $logfile = "${logpath}/${host}.log"
# fail if $backup_defaults is set to false and no $host[backup] defined # fail if $backup_defaults is set to false and no $host[backup] defined
if ! $backup_defaults and ! $backup { if ! $backup_defaults and ! $backup {
fail("There is no point in not specifying a backup, I got backup_defaults: ${backup_defaults} and backup definitions for this host (${host}) don't exist") fail("==> Configuration error: backup_defaults is ${backup_defaults} and backup definitions for this host don't exist <==")
} }
# merge the backup hashes to one if backup_default is set (defaults to true) # merge the backup hashes to one if backup_default is set (defaults to true)