From 4c8b18c890311ddc8e8b7192efa3348b34f42788 Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Fri, 17 Mar 2017 22:58:39 +0100 Subject: [PATCH] FIX sftp unlink path (#769) --- auto_backup/__openerp__.py | 2 +- auto_backup/models/db_backup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_backup/__openerp__.py b/auto_backup/__openerp__.py index 2c9b3d8fe..d037425f5 100644 --- a/auto_backup/__openerp__.py +++ b/auto_backup/__openerp__.py @@ -7,7 +7,7 @@ { "name": "Database Auto-Backup", "summary": "Backups database", - "version": "8.0.1.0.2", + "version": "8.0.1.0.3", "author": ( "VanRoey.be - Yenthe Van Ginneken, Agile Business Group," " Grupo ESOC IngenierĂ­a de Servicios," diff --git a/auto_backup/models/db_backup.py b/auto_backup/models/db_backup.py index 45c8bde89..d8a062397 100644 --- a/auto_backup/models/db_backup.py +++ b/auto_backup/models/db_backup.py @@ -232,7 +232,7 @@ class DbBackup(models.Model): for name in remote.listdir(rec.folder): if (name.endswith(".dump.zip") and os.path.basename(name) < oldest): - remote.unlink(name) + remote.unlink('%s/%s' % (rec.folder, name)) @api.multi @contextmanager