Skip to content

Commit

Permalink
Update lib/charms/mongodb/v0/helpers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mehdi Bendriss <bendrissmehdi@gmail.com>
  • Loading branch information
dmitry-ratushnyy and Mehdi-Bendriss committed Jul 14, 2023
1 parent 7189049 commit 95aaf63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/charms/mongodb/v0/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ def process_pbm_error(error_string: Optional[_StrOrBytes]) -> str:
error_string = error_string.decode("utf-8")
if "status code: 403" in error_string: # type: ignore
message = "s3 credentials are incorrect."
if "status code: 404" in error_string: # type: ignore
elif "status code: 404" in error_string: # type: ignore
message = "s3 configurations are incompatible."
if "status code: 301" in error_string: # type: ignore
elif "status code: 301" in error_string: # type: ignore
message = "s3 configurations are incompatible."
return message

Expand Down

0 comments on commit 95aaf63

Please sign in to comment.