Skip to content

Commit

Permalink
[Fix] Move kv_mount to templates
Browse files Browse the repository at this point in the history
  • Loading branch information
gboutry committed Sep 28, 2023
1 parent a2fea0c commit 2a8ce12
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def configure_kv_mount(self, name: str):

def configure_kv_policy(self, policy: str, mount: str):
"""Create/update a policy within vault to access the KV mount."""
with open("src/kv_mount.hcl", "r") as fd:
with open("src/templates/kv_mount.hcl", "r") as fd:
mount_policy = fd.read()
self._client.sys.create_or_update_policy(policy, mount_policy.format(mount=mount))

Expand Down

0 comments on commit 2a8ce12

Please sign in to comment.