Use Plan get_attribute() instead of asset one.

This commit is contained in:
Albert Cervera i Areny 2014-12-05 20:54:28 +01:00
parent 2e30324a85
commit 07c0c1a036

View file

@ -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: