We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7337225 + d47583b commit a37ff0dCopy full SHA for a37ff0d
diracx-cli/src/diracx/cli/internal/legacy.py
@@ -21,6 +21,7 @@
21
22
from diracx.core.config import Config
23
from diracx.core.config.schema import Field, SupportInfo
24
+from diracx.core.extensions import select_from_extension
25
26
from ..utils import AsyncTyper
27
@@ -76,8 +77,10 @@ def cs_sync(old_file: Path, new_file: Path):
76
77
)
78
79
_apply_fixes(raw)
-
80
- config = Config.model_validate(raw)
+ config_class: Config = select_from_extension(group="diracx", name="config")[
81
+ 0
82
+ ].load()
83
+ config = config_class.model_validate(raw)
84
new_file.write_text(
85
yaml.safe_dump(config.model_dump(exclude_unset=True, mode="json"))
86
0 commit comments