From 59f0fd9063d110c9ef0c4db4de347de02260e332 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 16 Apr 2023 14:25:09 +0200 Subject: [PATCH] solved backups-cleanup.py bug --- roles/native-backups-cleanup/files/backups-cleanup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/native-backups-cleanup/files/backups-cleanup.py b/roles/native-backups-cleanup/files/backups-cleanup.py index 38ea209d..45e9e70a 100644 --- a/roles/native-backups-cleanup/files/backups-cleanup.py +++ b/roles/native-backups-cleanup/files/backups-cleanup.py @@ -4,6 +4,7 @@ import os import argparse # Validating arguments +parser = argparse.ArgumentParser() parser.add_argument('--maximum-backup-size-percent', type=int, dest='maximum_backup_size_percent',required=True, choices=range(0,100), help="The directory from which the data should be encrypted.") parser.add_argument('--backups-folder-path',type=str,dest='backups_folder_path',required=True, help="The folder in which the backups are stored") args = parser.parse_args()