From 52bebed3980a246e34ece493f580d24deb2164d6 Mon Sep 17 00:00:00 2001 From: Jiri Konecny Date: Fri, 1 Dec 2023 15:29:18 +0100 Subject: [PATCH] infra: bumpver: Fix variable naming Fix the variable naming. We are not on RHEL-8 anymore :). --- scripts/makebumpver | 4 ++-- scripts/makebumpver.j2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/makebumpver b/scripts/makebumpver index a22767aaa8d..5faf24e04b0 100755 --- a/scripts/makebumpver +++ b/scripts/makebumpver @@ -271,8 +271,8 @@ class MakeBumpVer: m = re.match(branch_pattern, self.git_branch) if m: return m.group(1) - rhel8_branch_pattern = r"^rhel-(\d+)(.*)" - m = re.match(rhel8_branch_pattern, self.git_branch) + rhel_branch_pattern = r"^rhel-(\d+)(.*)" + m = re.match(rhel_branch_pattern, self.git_branch) if m: return m.group(1) return False diff --git a/scripts/makebumpver.j2 b/scripts/makebumpver.j2 index b13dc8a5eec..f8acc7fe2f6 100755 --- a/scripts/makebumpver.j2 +++ b/scripts/makebumpver.j2 @@ -264,8 +264,8 @@ class MakeBumpVer: m = re.match(branch_pattern, self.git_branch) if m: return m.group(1) - rhel8_branch_pattern = r"^rhel-(\d+)(.*)" - m = re.match(rhel8_branch_pattern, self.git_branch) + rhel_branch_pattern = r"^rhel-(\d+)(.*)" + m = re.match(rhel_branch_pattern, self.git_branch) if m: return m.group(1) return False