Skip to content

Commit

Permalink
fix: obsolete parameter name for bloo.config.extract_values, - remove…
Browse files Browse the repository at this point in the history
… print
  • Loading branch information
rv2931 committed Feb 26, 2024
1 parent 4e17550 commit 56950eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bloom/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 56950eb

Please sign in to comment.