Skip to content

Commit

Permalink
Fix validation of key_path block. (#574)
Browse files Browse the repository at this point in the history
Follow up to previous change to naming conventions of the Driver config attributes. When a key_path is provided, use the block within the key_path to validate the platform section as well.
  • Loading branch information
christinaholtNOAA authored Aug 16, 2024
1 parent 1719c6d commit dfdb466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uwtools/drivers/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def _validate(self, schema_file: Optional[Path] = None) -> None:
validate_internal(
schema_name=self.driver_name.replace("_", "-"), config=self._config_intermediate
)
validate_internal(schema_name=STR.platform, config=self.config_full)
validate_internal(schema_name=STR.platform, config=self._config_intermediate)

def _write_runscript(self, path: Path, envvars: Optional[dict[str, str]] = None) -> None:
"""
Expand Down

0 comments on commit dfdb466

Please sign in to comment.