Skip to content

Commit bdaa03d

Browse files
committed
ls
Signed-off-by: Milind Waykole <mwaykole@redhat.com>
1 parent 68e6dd1 commit bdaa03d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

utilities/jira.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,14 @@ def is_jira_open(jira_id: str, admin_client: DynamicClient) -> bool:
5252
# Check if the operator version in ClusterServiceVersion is greater than the jira fix version
5353
jira_fix_versions: list[Version] = []
5454
for fix_version in jira_fields.fixVersions:
55-
if _fix_version := re.search(r"\d.\d+.\d+", fix_version.name):
55+
if _fix_version := re.search(r"\d+\.\d+(?:\.\d+)?", fix_version.name):
5656
jira_fix_versions.append(Version(_fix_version.group()))
5757

5858
if not jira_fix_versions:
59-
raise ValueError(f"Jira {jira_id}: status is {jira_status} but does not have fix version(s)")
59+
LOGGER.warning(
60+
f"Jira {jira_id}: status is {jira_status} but no valid fix version(s) found; treating as open"
61+
)
62+
return True
6063

6164
operator_version: str = ""
6265
for csv in ClusterServiceVersion.get(dyn_client=admin_client, namespace=py_config["applications_namespace"]):

0 commit comments

Comments
 (0)