Skip to content

Commit

Permalink
fix: read local app data and use scenario for unit tests (vault autou…
Browse files Browse the repository at this point in the history
…nseal) (#467)

Signed-off-by: guillaume <[email protected]>
  • Loading branch information
gruyaume authored Aug 26, 2024
1 parent ee22eb8 commit 530cdff
Show file tree
Hide file tree
Showing 2 changed files with 378 additions and 292 deletions.
2 changes: 1 addition & 1 deletion lib/charms/vault_k8s/v0/vault_autounseal.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def _get_credentials(self, relation: ops.Relation) -> ApproleDetails | None:
if relation.app is None:
logger.warning("No remote application yet")
return None
credentials_secret_id = relation.data[relation.app].get("credentials_secret_id")
credentials_secret_id = relation.data[self.charm.app].get("credentials_secret_id")
if credentials_secret_id is None:
return None
secret = self.model.get_secret(id=credentials_secret_id)
Expand Down
Loading

0 comments on commit 530cdff

Please sign in to comment.