From c1a9b5064117a50bf6fab57b9fed57d8761458d5 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 19 Apr 2023 14:04:27 +0200 Subject: [PATCH] solved path bug --- roles/server_native-backups-cleanup/files/backups-cleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/server_native-backups-cleanup/files/backups-cleanup.py b/roles/server_native-backups-cleanup/files/backups-cleanup.py index 8fdf05fa..ad9f67ca 100644 --- a/roles/server_native-backups-cleanup/files/backups-cleanup.py +++ b/roles/server_native-backups-cleanup/files/backups-cleanup.py @@ -18,7 +18,7 @@ while psutil.disk_usage(args.backups_folder_path).percent > args.maximum_backup_ for application_directory in os.listdir(host_backup_directory_path): # The directory which contains all backup versions of the application - versions_directory = os.path.join(host_backup_directory_path, application_directory) + versions_directory = os.path.join(host_backup_directory_path, application_directory) + "/" versions = os.listdir(versions_directory) versions.sort(reverse=False)