From 2a8ce128eacc72cbf49debef0422c6c3805ded0f Mon Sep 17 00:00:00 2001 From: Guillaume Boutry Date: Thu, 28 Sep 2023 10:24:47 +0200 Subject: [PATCH] [Fix] Move kv_mount to templates --- src/{ => templates}/kv_mount.hcl | 0 src/vault.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename src/{ => templates}/kv_mount.hcl (100%) diff --git a/src/kv_mount.hcl b/src/templates/kv_mount.hcl similarity index 100% rename from src/kv_mount.hcl rename to src/templates/kv_mount.hcl diff --git a/src/vault.py b/src/vault.py index b2388613..61f3e1c5 100644 --- a/src/vault.py +++ b/src/vault.py @@ -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))