mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-07 05:24:47 +08:00
Don't log dry-run mode twice
This commit is contained in:
parent
6070529cfd
commit
287299614e
2 changed files with 1 additions and 2 deletions
|
@ -607,8 +607,6 @@ class NPBackupRunner:
|
|||
}
|
||||
return js
|
||||
return False
|
||||
if self.dry_run:
|
||||
logger.info("Running in dry mode. No modifications will be done")
|
||||
# pylint: disable=E1102 (not-callable)
|
||||
return fn(self, *args, **kwargs)
|
||||
|
||||
|
|
|
@ -338,6 +338,7 @@ class ResticRunner:
|
|||
# but restic backup / --dry-run does
|
||||
operation = fn_name(1)
|
||||
if operation in ["backup", "forget", "prune", "restore", "rewrite"]:
|
||||
self.write_logs("Running in dry mode. No modifications will be done", level="info")
|
||||
_cmd += " --dry-run"
|
||||
|
||||
self._executor_running = True
|
||||
|
|
Loading…
Add table
Reference in a new issue