1
0

Change environment variable prefix

This commit is contained in:
Jon Michael Aanes 2024-04-17 23:54:05 +02:00
parent 634f4a1adc
commit 0d7bb6fdf6
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -4,7 +4,7 @@ import os
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO) logger.setLevel(logging.INFO)
ENV_KEY_PREFIX = 'CF_IV_' ENV_KEY_PREFIX = 'CF_PD_'
def load_secret(env_key: str) -> str: def load_secret(env_key: str) -> str:
filepath = os.environ.get(ENV_KEY_PREFIX + env_key) filepath = os.environ.get(ENV_KEY_PREFIX + env_key)