From 56950ebb7dcc63e783ac8ccf14f9554d055ed865 Mon Sep 17 00:00:00 2001 From: RV Date: Mon, 26 Feb 2024 17:21:02 +0100 Subject: [PATCH] fix: obsolete parameter name for bloo.config.extract_values, - remove print --- bloom/config.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bloom/config.py b/bloom/config.py index 72237ba3..229283ec 100644 --- a/bloom/config.py +++ b/bloom/config.py @@ -8,7 +8,8 @@ def extract_values(filename:str,config:dict,allow_extend:bool=True): Parameters: - filename: filename/filepath from which to extract key/value pairs - config: dict to extend/update with new key/value pairs - - keys: restrict the keys that are extracted/updated to the supplied list. No restriction if None + - allow_extend: allows to extend extracted keys with new keys that are not in actuel config if True, + restrict to already existing keys in config of False Returns a dict contains key/value """ FILEPATH=Path(os.path.dirname(__file__)).joinpath(filename) @@ -54,8 +55,6 @@ def __init__(self,*arg, **args): file_to_process=Path(os.path.dirname(__file__)).joinpath(f"../.env.{self.app_env}.local") if os.path.isfile(file_to_process): extract_values(file_to_process,config,allow_extend=False) - print(config) - # Now all .env.* files has been merged, we write the cumulated result to .env # .env is for compliance with docker/docker-compose standard file_to_process=Path(os.path.dirname(__file__)).joinpath(f"../.env")