13 lines
367 B
Python
13 lines
367 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from typing import Any
|
||
|
|
|
||
|
|
from pobsync.config.merge import build_effective_config
|
||
|
|
|
||
|
|
from .config_repository import global_config_data, host_config_data
|
||
|
|
|
||
|
|
|
||
|
|
class DjangoConfigSource:
|
||
|
|
def effective_config_for_host(self, host: str) -> dict[str, Any]:
|
||
|
|
return build_effective_config(global_config_data(), host_config_data(host))
|