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 10 months ago

VallariAg commented 10 months 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 10 months ago

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

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