From 0dcede9e0f1e89d29c7637be6bb1a44324e9d99d Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Tue, 26 Nov 2024 23:58:22 +0100 Subject: [PATCH] Secret folder --- secret_loader/__init__.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/secret_loader/__init__.py b/secret_loader/__init__.py index dffdbf8..ccc3b84 100644 --- a/secret_loader/__init__.py +++ b/secret_loader/__init__.py @@ -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',