From 5af33bb192d8f432c610cce778557a6524c60a35 Mon Sep 17 00:00:00 2001 From: jaimeozaez <135366362+jaimeozaez@users.noreply.github.com> Date: Mon, 10 Jun 2024 20:56:45 +0200 Subject: [PATCH] Fixed autoclean-sftp function (#281) * Added @click.pass_context before autoclean_sftp function * Updated CHANGELOG.md * removed tatus file --- CHANGELOG.md | 1 + bu_isciii/__main__.py | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03484899..ecfd10de 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,7 @@ Code contributions to the new version: - Fixed archive module. Updated correct header for scout tsv [#258](https://github.com/BU-ISCIII/buisciii-tools/pull/258). - Fixed clean module. Corrected purge_files function. Renaming stage moved from clean to rename_nocopy option. Updated services.json file with correct paths for some services. [#280](https://github.com/BU-ISCIII/buisciii-tools/pull/280) +- Fixed autoclean-sftp function. [#281](https://github.com/BU-ISCIII/buisciii-tools/pull/281) #### Changed diff --git a/bu_isciii/__main__.py b/bu_isciii/__main__.py index 012b3bb4..321bb172 100755 --- a/bu_isciii/__main__.py +++ b/bu_isciii/__main__.py @@ -640,6 +640,7 @@ def archive( default=14, help="Integer, remove files older than a window of `-d [int]` days. Default 14 days.", ) +@click.pass_context def autoclean_sftp(ctx, sftp_folder, days): """Clean old sftp services""" sftp_clean = bu_isciii.autoclean_sftp.AutoremoveSftpService(