Skip to content

Commit

Permalink
Fix check for duplicate hashi vault key paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mksh committed Aug 19, 2024
1 parent 9a424c8 commit 515f0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def set(

# hashi vault configuration
if hashi_vault_key_paths is not None:
if sorted(list(set(hashi_vault_key_paths))) != sorted(hashi_vault_key_paths):
if len(set(hashi_vault_key_paths)) != len(hashi_vault_key_paths):
raise RuntimeError('Found duplicate addresses in hashi vault key paths')

self.hashi_vault_url = hashi_vault_url
Expand Down

0 comments on commit 515f0e1

Please sign in to comment.