Change output to put S3 keys in same column in all cases

This commit is contained in:
XANTRONIX Industrial 2025-02-12 16:50:43 -05:00
parent 015ba27c33
commit a6e785281b

View file

@ -36,13 +36,13 @@ for report in StormReport.each_from_csv_file(getattr(args, 'csv-report-details')
for key in bucket.each_matching_key(radars, report.timestamp_start, report.timestamp_end):
if archive.is_archived(key):
if not args.quiet:
print(f"Key {key} already archived ({i})")
print(f"{key} report {i} Already archived")
else:
if not args.quiet:
if args.dry_run:
print(f"Would archive {key} ({i})")
print(f"{key} report {i} Would archive")
else:
print(f"Archiving {key} ({i})")
print(f"{key} report {i} Archiving")
if not args.dry_run:
archive.archive(key)