mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-25 11:12:01 +08:00
Simplify how MBS is configured
This merges the configuration from conf/config.py to module_build_service/config.py. This also greatly simplifies the logic in `init_config`. Additionally, `init_config` is no longer aware of Flask. This will allow us to eventually break up the configuration between the API and the backend.
This commit is contained in:
@@ -14,7 +14,6 @@ import koji
|
||||
import module_build_service
|
||||
from module_build_service import db
|
||||
from module_build_service.utils import get_rpm_release, import_mmd, mmd_to_str
|
||||
from module_build_service.config import init_config
|
||||
from module_build_service.models import (
|
||||
ModuleBuild, ModuleArch, ComponentBuild, VirtualStream,
|
||||
BUILD_STATES,
|
||||
@@ -24,8 +23,6 @@ from module_build_service.db_session import db_session
|
||||
|
||||
|
||||
base_dir = os.path.dirname(__file__)
|
||||
app = module_build_service.app
|
||||
conf = init_config(app)
|
||||
|
||||
|
||||
def staged_data_filename(filename):
|
||||
|
||||
Reference in New Issue
Block a user