ceph / teuthology-api

A REST API to execute teuthology commands.
MIT License
2 stars 10 forks source link

use config.settings attributes instead of os.getenv #34

Closed VallariAg closed 1 year ago

VallariAg commented 1 year ago

APISettings() will load all values from .env file as APISettings's attributes. These can be imported in all other modules, instead of using load_dotenv in every module. ref: https://fastapi.tiangolo.com/advanced/settings/#reading-a-env-file

This also fixes the issue of missing value of PADDLES_URL in services/helpers.py

VallariAg commented 1 year ago

@zmc using env_file: in docker-compose worked! thank you! :)

i have explained the problem that this issue solves in #38