mirror of
https://github.com/netinvent/npbackup.git
synced 2024-09-20 23:06:17 +08:00
Fix missing self argument for decorator fn
This commit is contained in:
parent
f07c51df81
commit
ff1dce44e1
|
@ -516,7 +516,7 @@ class ResticRunner:
|
|||
def wrapper(self, *args, **kwargs):
|
||||
if not self.is_init:
|
||||
return None
|
||||
return fn(*args, **kwargs)
|
||||
return fn(self, *args, **kwargs)
|
||||
return wrapper
|
||||
|
||||
@property
|
||||
|
@ -566,7 +566,7 @@ class ResticRunner:
|
|||
logger.debug("Trace:", exc_info=True)
|
||||
return result
|
||||
|
||||
@check_if_init
|
||||
@check_if_init # TODO: remove function and keep list("snapshots")
|
||||
def snapshots(self) -> Optional[list]:
|
||||
"""
|
||||
Returns json list of snapshots
|
||||
|
|
Loading…
Reference in a new issue