Skip to content

Commit

Permalink
Merge pull request #162 from tkren/teakay-remove-bucket-check-warning
Browse files Browse the repository at this point in the history
object_storage: remove access denied warning for s3 buckets
  • Loading branch information
Roman Inflianskas authored Dec 21, 2023
2 parents cc2b427 + 118fca8 commit e7d8d4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rohmu/object_storage/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,8 @@ def check_or_create_bucket(self) -> None:
if status_code == HTTPStatus.MOVED_PERMANENTLY:
raise InvalidConfigurationError(f"Wrong region for bucket {self.bucket_name}, check configuration")
elif status_code == HTTPStatus.FORBIDDEN:
self.log.warning("Access denied on bucket check, assuming write permissions")
# Access denied on bucket check, most likely due to missing s3:ListBucket, assuming write permissions
pass
elif status_code in {HTTPStatus.BAD_REQUEST, HTTPStatus.NOT_FOUND}:
create_bucket = True
else:
Expand Down

0 comments on commit e7d8d4a

Please sign in to comment.