diff --git a/Tests/kaas/k8s-version-policy/k8s_version_policy.py b/Tests/kaas/k8s-version-policy/k8s_version_policy.py index cef272acd..a2acd3cd5 100755 --- a/Tests/kaas/k8s-version-policy/k8s_version_policy.py +++ b/Tests/kaas/k8s-version-policy/k8s_version_policy.py @@ -171,7 +171,7 @@ def __str__(self): def parse_version(version_str: str) -> K8sVersion: - cleansed = version_str.strip().removeprefix("v") + cleansed = version_str.strip().removeprefix("v").split("+")[0] # remove leading v as well as build info try: major, minor, patch = cleansed.split(".") return K8sVersion(int(major), int(minor), int(patch))