From 83032c4bcd4242dbbaac7eb3967405ef5b2761c0 Mon Sep 17 00:00:00 2001 From: Liam Beckman Date: Fri, 15 Dec 2023 11:34:47 -0800 Subject: [PATCH] Revert change to s3_client call in Boto Manager --- fence/resources/aws/boto_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fence/resources/aws/boto_manager.py b/fence/resources/aws/boto_manager.py index 3cb4c68dd..3b60b7ca8 100644 --- a/fence/resources/aws/boto_manager.py +++ b/fence/resources/aws/boto_manager.py @@ -70,7 +70,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"] - s3_client.delete_object(Bucket=bucket, Key=key) + self.s3_client.delete_object(Bucket=bucket, Key=key) self.logger.info( "deleted file for prefix {} in bucket {}".format(prefix, bucket) )