Skip to content

Commit 39124b7

Browse files
committed
Fewer errors for Vault
1 parent cabd1b4 commit 39124b7

File tree

2 files changed

+2
-2
lines changed
  • key-value
    • key-value-aio/src/key_value/aio/stores/vault
    • key-value-sync/src/key_value/sync/code_gen/stores/vault

2 files changed

+2
-2
lines changed

key-value/key-value-aio/src/key_value/aio/stores/vault/store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async def _get_managed_entry(self, *, key: str, collection: str) -> ManagedEntry
8686
combo_key: str = compound_key(collection=collection, key=key)
8787

8888
try:
89-
response = self._kv_v2.read_secret(path=combo_key, mount_point=self._mount_point) # pyright: ignore[reportUnknownMemberType,reportUnknownVariableType]
89+
response = self._kv_v2.read_secret(path=combo_key, mount_point=self._mount_point, raise_on_deleted_version=True) # pyright: ignore[reportUnknownMemberType,reportUnknownVariableType]
9090
except InvalidPath:
9191
return None
9292
except Exception:

key-value/key-value-sync/src/key_value/sync/code_gen/stores/vault/store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _get_managed_entry(self, *, key: str, collection: str) -> ManagedEntry | Non
8383
combo_key: str = compound_key(collection=collection, key=key)
8484

8585
try:
86-
response = self._kv_v2.read_secret(path=combo_key, mount_point=self._mount_point) # pyright: ignore[reportUnknownMemberType,reportUnknownVariableType]
86+
response = self._kv_v2.read_secret(path=combo_key, mount_point=self._mount_point, raise_on_deleted_version=True) # pyright: ignore[reportUnknownMemberType,reportUnknownVariableType]
8787
except InvalidPath:
8888
return None
8989
except Exception:

0 commit comments

Comments
 (0)