Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao committed Jan 28, 2025
1 parent a561806 commit 28710a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fence/blueprints/data/indexd.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ def assume_role(cls, bucket_cred, expires_in, aws_creds_config, boto=None):

def _create_bucket_name_regex(self, bucket):
if bucket.endswith("*"):
# translate last '*' into regexp
return f"^{bucket[:-1] + '.*'}$"
return f"^{bucket}$"

Expand All @@ -983,7 +984,6 @@ def bucket_name(self):
InternalError("S3_BUCKETS not configured"),
)
for bucket in s3_buckets:
print(self.parsed_url.netloc)
if re.match(
self._create_bucket_name_regex(bucket=bucket), self.parsed_url.netloc
):
Expand Down

0 comments on commit 28710a4

Please sign in to comment.