From 39bd14e0d35e3c9fa7c0e7d0b1ca2467553d7703 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Sat, 7 Jan 2023 14:03:35 +0100 Subject: [PATCH] change: state attribute to bool-changed --- files/check_dir_size_for_backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/check_dir_size_for_backup.py b/files/check_dir_size_for_backup.py index 5427eb6..1810e18 100644 --- a/files/check_dir_size_for_backup.py +++ b/files/check_dir_size_for_backup.py @@ -37,9 +37,9 @@ if __name__ == "__main__": size = int(p.stdout.split("\n")[-2].split("\t")[0]) if currentSize and currentSize == size: - result = { "state" : "ok", "old" : currentSize, "new" : size } + result = { "changed" : False, "old" : currentSize, "new" : size } else: - result = { "state" : "changed", "old" : currentSize, "new" : size } + result = { "changed" : True, "old" : currentSize, "new" : size } if args.save_new_size: