Skip to content

Commit

Permalink
Add relation name to secret label and revert poetry.lock
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
  • Loading branch information
marceloneppel committed May 2, 2024
1 parent e918e4d commit 1fd2b77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/relations/async_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
from constants import (
APP_SCOPE,
PATRONI_CONF_PATH,
PEER,
POSTGRESQL_DATA_PATH,
)

Expand Down Expand Up @@ -288,7 +289,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 1fd2b77

Please sign in to comment.