Skip to content

Commit

Permalink
Fix secret label (#472)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
  • Loading branch information
marceloneppel authored May 8, 2024
1 parent 2aed802 commit 2853224
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/relations/async_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

from constants import (
APP_SCOPE,
PEER,
POSTGRESQL_DATA_PATH,
WORKLOAD_OS_GROUP,
WORKLOAD_OS_USER,
Expand Down Expand Up @@ -276,7 +277,7 @@ def _get_secret(self) -> Secret:
logger.debug("Secret not found, creating a new one")
pass

app_secret = self.charm.model.get_secret(label=f"{self.model.app.name}.app")
app_secret = self.charm.model.get_secret(label=f"{PEER}.{self.model.app.name}.app")
content = app_secret.peek_content()

# Filter out unnecessary secrets.
Expand Down

0 comments on commit 2853224

Please sign in to comment.