From 86ce77df72b1424505d4ee9238a8f2bf9c31683f Mon Sep 17 00:00:00 2001 From: Mia Altieri <32723809+MiaAltieri@users.noreply.github.com> Date: Tue, 20 Feb 2024 17:11:04 +0100 Subject: [PATCH] Update src/charm.py Co-authored-by: Mehdi Bendriss --- src/charm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charm.py b/src/charm.py index 9de4b63e5..d5953b427 100755 --- a/src/charm.py +++ b/src/charm.py @@ -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,