Fix lpostcmd prepare to work with recent changes

This commit is contained in:
Timo Teräs 2015-01-30 09:12:02 +02:00
parent 19b08adf35
commit 5b76dc1cb6
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ local rsyncpostcmd = {
-- called before anything else
-- builds the target from host and targetdir
prepare = function(config)
prepare = function(config, level, skipTarget)
if not config.host then
error("rsyncpostcmd neets 'host' configured", 4)
end
@ -72,7 +72,7 @@ local rsyncpostcmd = {
if not config.target then
config.target = config.host .. ":" .. config.targetdir
end
return default.rsync.prepare(config)
return default.rsync.prepare(config, level, skipTarget)
end
}