|
|
@ -309,10 +309,11 @@ def list_files(ctx, context, sha256sum, suffix, print_identity): |
|
|
|
file = file.strip() |
|
|
|
|
|
|
|
if sha256sum: |
|
|
|
stat = s3.stat_object(s3_bucket, obj) |
|
|
|
sha256sum_value = stat.metadata[get_metadata_name("SHA256SUM")] |
|
|
|
file_object = s3.get_object(s3_bucket, obj) |
|
|
|
stored_data = json.load(file_object) |
|
|
|
sha256sum_value = stored_data['sha256sum'] |
|
|
|
file = f'{sha256sum_value} {file}' |
|
|
|
else if print_identity: |
|
|
|
elif print_identity: |
|
|
|
file_object = s3.get_object(s3_bucket, obj) |
|
|
|
stored_data = json.load(file_object) |
|
|
|
found_files.append(stored_data['storedAssetIdentity']) |
|
|
|