Skip to content

Commit

Permalink
fix schema for v2
Browse files Browse the repository at this point in the history
;
  • Loading branch information
jedwards4b committed Dec 12, 2023
1 parent f9fcb69 commit c8b0fa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CIME/XML/machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def __init__(
"MACHINES_SPEC_FILE", attributes={"version": "2.0"}
),
}
# Before v3 there was but one choice
if not schema:
schema = files.get_schema("MACHINES_SPEC_FILE")

logger.debug("Verifying using schema {}".format(schema))

GenericXML.__init__(self, infile, schema, read_only=read_only)
Expand Down

0 comments on commit c8b0fa2

Please sign in to comment.