Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions s3-checksum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ Resources:

if checksum is None:
return checksum, False, None


# Added to handle empty Checksum responses when CRC64NVME checksums are used.
if checksum == {}:
return checksum, True, None

for key in keys_to_check:
if key in checksum:
print(f"{key} exists in Checksum object within get_object_attributes response.")
Expand Down Expand Up @@ -160,7 +164,12 @@ Resources:
print(f"{key} already has a SHA256 Checksum!")

else:
print(f"{key} does not have a Checksum!")
# Added to handle empty Checksum responses when CRC64NVME checksums are used.
if checksum_pair == {}:
print(f"{key} has a CRC64NVME Checksum.")
else:
print(f"{key} does not have a Checksum!")

print(f"Obtaining other attributes for {key} ...")

#Check Object's storage class
Expand Down