Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APP-10206: revert head object #34

Merged
merged 1 commit into from
May 29, 2024
Merged
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
18 changes: 9 additions & 9 deletions scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,15 @@ def lambda_handler(event, context):

s3_object = event_object(event, s3_resource=s3_cross_account)

# verify that s3 object exists - if not, log a warning
if not s3_object_exists(s3_object.bucket_name, s3_object.key):
print(
"WARNING: s3 object does not exist: bucket=%s, key=%s, elapsed=%s"
% s3_object.bucket_name,
s3_object.key,
get_timestamp() - start_time,
)
return
# # verify that s3 object exists - if not, log a warning
# if not s3_object_exists(s3_object.bucket_name, s3_object.key):
# print(
# "WARNING: s3 object does not exist: bucket=%s, key=%s, elapsed=%s"
# % s3_object.bucket_name,
# s3_object.key,
# get_timestamp() - start_time,
# )
# return

if str_to_bool(AV_PROCESS_ORIGINAL_VERSION_ONLY):
verify_s3_object_version(s3_cross_account, s3_object)
Expand Down
Loading