1
0

Secret folder
Some checks failed
Run Python tests (through Pytest) / Test (push) Waiting to run
Verify Python project can be installed, loaded and have version checked / Test (push) Waiting to run
Python Ruff Code Quality / ruff (push) Has been cancelled

This commit is contained in:
Jon Michael Aanes 2024-11-26 23:58:22 +01:00
parent 43ca400917
commit 0dcede9e0f
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -237,9 +237,13 @@ class SecretLoader:
enabled.
"""
solutions_list = []
solutions_list.append(
f'Write secret to file: \033[1m{DEFAULT_SECRETS_DIRECTORY}/{secret_name.lower()}\033[0m',
)
if self.secret_folder:
solutions_list.append(
f'Write secret to file: \033[1m{self.secret_folder}/{secret_name.lower()}\033[0m',
)
solutions_list.append(
f'Secret folder is located at {self.secret_folder.absolute()}',
)
if self.env_key_prefix is not None:
solutions_list.append(
f'Add environment variable pointing to written secret: \033[1m{self.env_key_prefix}_{secret_name.upper()}\033[0m',