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',