Fix consistency-check endpoint using wrong field name for S3 size

This commit is contained in:
Mondo Diaz
2026-01-06 15:36:44 -06:00
parent c184272cec
commit 8490c50e9c

View File

@@ -2739,7 +2739,7 @@ def check_consistency(
if len(missing_s3_keys) < limit: if len(missing_s3_keys) < limit:
missing_s3_keys.append(artifact.s3_key) missing_s3_keys.append(artifact.s3_key)
else: else:
s3_size = s3_info.get("ContentLength", 0) s3_size = s3_info.get("size", 0)
if s3_size != artifact.size: if s3_size != artifact.size:
if len(size_mismatches) < limit: if len(size_mismatches) < limit:
size_mismatches.append( size_mismatches.append(