Skip to content

Commit

Permalink
Pop the right databag
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Nov 3, 2023
1 parent d33402f commit 70e4e4c
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 @@ -278,7 +278,7 @@ def remove_secret(self, scope: Scopes, key: str) -> None:
content[secret_key] = SECRET_DELETED_LABEL
secret.set_content(content)
# Just in case we started on databag
self.unit_peer_data.pop(key, None)
self._peer_data(scope).pop(key, None)
else:
try:
self._peer_data(scope).pop(key)
Expand Down

0 comments on commit 70e4e4c

Please sign in to comment.