Skip to content

Commit

Permalink
Fix missing pydantic updates in legacy mii code (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
loadams authored Sep 11, 2024
1 parent 3ed3aa2 commit fcd0a5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mii/legacy/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ def support_legacy_api(
}
# TODO do this in a single for loop
for key, val in mii_config.items():
if key not in MIIConfig.fields.keys():
if key not in MIIConfig.model_fields.keys():
model_config[key] = val
mii_config = {
k: v
for k,
v in mii_config.items() if k in MIIConfig.__dict__["__fields__"]
v in mii_config.items() if k in MIIConfig.model_fields.keys()
}
mii_config["version"] = version
mii_config["deployment_type"] = deployment_type
Expand Down

0 comments on commit fcd0a5b

Please sign in to comment.