Merge "Fix latest_tag rendering for stable versions"

This commit is contained in:
Zuul 2020-04-14 11:36:40 +00:00 committed by Gerrit Code Review
commit 16d6c9bb06
2 changed files with 2 additions and 4 deletions

View File

@ -26,7 +26,6 @@ import os
import sys
import subprocess
import pbr.version
import openstackdocstheme
# -- OpenStack-Ansible configuration --------------------------------------
@ -52,7 +51,7 @@ if current_series == "latest":
suse_series = previous_series_name.capitalize()
else:
series_names = current_series.capitalize()
latest_tag = pbr.version.VersionInfo('osa_toolkit').__str__()
latest_tag = subprocess.check_output(["git", "describe", "--abbrev=0", "--tag"]).strip().decode()
rdo_series = current_series_name
suse_series = current_series_name.capitalize()

View File

@ -29,7 +29,6 @@ import sys
import subprocess
import openstackdocstheme
import pbr.version
import yaml
# -- OpenStack-Ansible configuration --------------------------------------
@ -55,7 +54,7 @@ if current_series == "latest":
upgrade_warning = "Upgrading to master is not recommended. Master is under heavy development, and is not stable."
else:
series_names = current_series.capitalize()
latest_tag = pbr.version.VersionInfo('osa_toolkit').__str__()
latest_tag = subprocess.check_output(["git", "describe", "--abbrev=0", "--tag"]).strip().decode()
branch = "stable/{}".format(current_series)
upgrade_warning = "The upgrade is always under active development."