mirror of
https://github.com/NaN-tic/trytond-monitoring_rdiff_backup.git
synced 2023-12-14 05:12:59 +01:00
Use Plan get_attribute() instead of asset one.
This commit is contained in:
parent
2e30324a85
commit
07c0c1a036
|
@ -19,7 +19,7 @@ class CheckPlan:
|
|||
__name__ = 'monitoring.check.plan'
|
||||
|
||||
def check_backup(self):
|
||||
path = self.asset.get_attribute('backup_paths')
|
||||
path = self.get_attribute('backup_paths')
|
||||
output = check_output('rdiff-backup', '--list-increment-size', path)
|
||||
lines = [x for x in output.splitlines() if '(current mirror)' in x]
|
||||
if not lines:
|
||||
|
|
Loading…
Reference in a new issue