Skip to content

Commit

Permalink
schema: Assume v1 is v1.1 as before
Browse files Browse the repository at this point in the history
When presented with I/O data containing `"version": "1"`, assume it's
actually v1.1, as that's what KernelCI legacy means, and that's what
KCIDB accepted it as in the past.
  • Loading branch information
spbnick committed Nov 8, 2024
1 parent 4dd6a07 commit 308e85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kcidb_io/schema/v01_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def _get_version(cls, data):
if isinstance(version, str):
match = re.match("^([0-9]+)(\\.([0-9]+))?$", version)
if match:
return int(match.group(1)), int(match.group(3) or "0")
return int(match.group(1)), int(match.group(3) or "1")
else:
major = version["major"]
try:
Expand Down

0 comments on commit 308e85f

Please sign in to comment.