Skip to content

Commit

Permalink
Use correct s3_client to delete files
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeckman314 committed Jan 25, 2024
1 parent 7893d17 commit f64baff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fence/resources/aws/boto_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def delete_data_file(self, bucket, prefix):
self.logger.error("multiple files found with prefix {}".format(prefix))
return ("Multiple files found matching this prefix. Backing off.", 400)
key = s3_objects["Contents"][0]["Key"]
self.s3_client.delete_object(Bucket=bucket, Key=key)
s3_client.delete_object(Bucket=bucket, Key=key)
self.logger.info(
"deleted file for prefix {} in bucket {}".format(prefix, bucket)
)
Expand Down

0 comments on commit f64baff

Please sign in to comment.