diff --git a/src/charm.py b/src/charm.py index 817c1c40b4..76b8daf746 100755 --- a/src/charm.py +++ b/src/charm.py @@ -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)