fixup! Use Pydantic TypeAdapter for credential validation in XML and YAML parsers

This commit is contained in:
Arash
2026-03-18 13:37:08 +01:00
parent 2e0ced5142
commit b2f8e9c49d
+2 -6
View File
@@ -1106,12 +1106,8 @@ def __parse_credentials_elems(test_elem):
"""
raw_list = []
for cred_elem in test_elem.findall("credentials"):
variables = [
{"name": v.get("name"), "value": v.get("value")} for v in cred_elem.findall("variable")
]
secrets = [
{"name": s.get("name"), "value": s.get("value")} for s in cred_elem.findall("secret")
]
variables = [{"name": v.get("name"), "value": v.get("value")} for v in cred_elem.findall("variable")]
secrets = [{"name": s.get("name"), "value": s.get("value")} for s in cred_elem.findall("secret")]
raw: dict = {"name": cred_elem.get("name"), "variables": variables, "secrets": secrets}
version = cred_elem.get("version")
if version is not None: