Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DPE-1720] Add backups to k8s charm and configure PBM #172

Merged
merged 13 commits into from
Jul 22, 2023
Prev Previous commit
Next Next commit
Update lib/charms/mongodb/v0/helpers.py
Co-authored-by: Mehdi Bendriss <bendrissmehdi@gmail.com>
  • Loading branch information
2 people authored and delgod committed Jul 22, 2023
commit 634233176a8a5a454bbe0adf78f90a236ca3cea0
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