Skip to content

Commit

Permalink
Include all allowed OS versions in the error message
Browse files Browse the repository at this point in the history
Currently the error was only reporting ALLOWED_BASE_OS_VERSIONS but not
reporting the nonbase os versions (for application containers)
  • Loading branch information
dcermak committed Nov 26, 2024
1 parent 24eb2c5 commit 5841669
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bci_tester/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@
):
raise ValueError(
f"Invalid OS_VERSION: {OS_VERSION}, allowed values are: "
+ ", ".join(ALLOWED_BASE_OS_VERSIONS)
+ ", ".join(
set(ALLOWED_BASE_OS_VERSIONS).union(
set(ALLOWED_NONBASE_OS_VERSIONS)
)
)
)


Expand Down

0 comments on commit 5841669

Please sign in to comment.