mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-24 06:25:17 +08:00
Fix live_output parameter that was dropped from executor
This commit is contained in:
parent
6433fa9c4e
commit
544c8c5dbc
1 changed files with 6 additions and 3 deletions
|
@ -32,7 +32,7 @@ class ResticRunner:
|
|||
repository: str,
|
||||
password: str,
|
||||
verbose: bool = False,
|
||||
binary_search_paths: list = None,
|
||||
binary_search_paths: List[str] = None,
|
||||
) -> None:
|
||||
self.repository = repository
|
||||
self.password = password
|
||||
|
@ -515,8 +515,11 @@ class ResticRunner:
|
|||
Execute forget command for given snapshot
|
||||
"""
|
||||
cmd = "forget {}".format(snapshot)
|
||||
# We need live output here since server errors will not stop client from deletion atempts
|
||||
result, output = self.executor(cmd, live_output=True)
|
||||
# We need to be verbose here since server errors will not stop client from deletion attempts
|
||||
verbose = self.verbose
|
||||
self.verbose = True
|
||||
result, output = self.executor(cmd):
|
||||
self.verbose = verbose
|
||||
if result:
|
||||
logger.info("successfully forgot snapshot.")
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue