Skip to content

Commit

Permalink
Change head_bucket to list_objects. (#7485)
Browse files Browse the repository at this point in the history
Co-authored-by: Trevor DiMartino <trevor.dimartino@.workday.com>
  • Loading branch information
trevenrawr and Trevor DiMartino committed May 4, 2022
1 parent 2155bf5 commit ed04dab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(
self.bucket = check.str_param(s3_bucket, "s3_bucket")
self.s3_prefix = check.str_param(s3_prefix, "s3_prefix")
self.s3 = s3_session
self.s3.head_bucket(Bucket=self.bucket)
self.s3.list_objects(Bucket=self.bucket, Prefix=self.s3_prefix, MaxKeys=1)

def _get_path(self, context):
return "/".join([self.s3_prefix, "storage", *context.get_output_identifier()])
Expand Down

0 comments on commit ed04dab

Please sign in to comment.