Skip to content

Commit b5822f0

Browse files
committed
updated regex for rocm version to accept 7.0.0
1 parent 8ec8ffc commit b5822f0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

nodescraper/plugins/inband/rocm/rocmdata.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ def validate_rocm_version(cls, rocm_version: str) -> str:
4848
Returns:
4949
str: The validated ROCm version string.
5050
"""
51-
if not bool(
52-
re.match(
53-
r"^(\d+(?:\.\d+){0,3})-(\d+)$",
54-
rocm_version,
55-
)
56-
):
51+
if not re.match(r"^\d+(?:\.\d+){0,3}(-\d+)?$", rocm_version):
5752
raise ValueError(f"ROCm version has invalid format: {rocm_version}")
58-
5953
return rocm_version

0 commit comments

Comments
 (0)