Skip to content

Commit

Permalink
Update src/charm.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mehdi Bendriss <[email protected]>
  • Loading branch information
MiaAltieri and Mehdi-Bendriss authored Feb 20, 2024
1 parent 005ad69 commit 86ce77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def _on_set_password(self, event: ActionEvent) -> None:

# rotate password to shards
# TODO in the future support rotating passwords of pbm across shards
if username == OperatorUser.get_username() or username == BackupUser.get_username:
if username in [OperatorUser.get_username(), BackupUser.get_username()]:
self.config_server.update_credentials(
MongoDBUser.get_password_key_name_for_user(username),
new_password,
Expand Down

0 comments on commit 86ce77d

Please sign in to comment.