From 5ded5656e8033311003a074a88fe411fbb0200f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?El=C5=91d=20Ill=C3=A9s?= Date: Wed, 28 Jun 2023 20:40:03 +0200 Subject: [PATCH] Fix release-id fetching for release job With a recent patch a new release job error came up [1]: when fetching the release-id from the series_status.yaml the yaml parser resolves the new names (eg: 2023.1) as float, so we have to convert it to string to be able to concatenate it to 'stable/' string. [1] File "/home/zuul/scripts/release-tools/process_release_requests.py", line 116, in get_branch branch = "stable/" + series.get("release-id", series_name) TypeError: can only concatenate str (not "float") to str Change-Id: I4e317919292d7481b2ffd15b68473fff5b4b9aaf --- .../files/release-tools/process_release_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/copy-release-tools-scripts/files/release-tools/process_release_requests.py b/roles/copy-release-tools-scripts/files/release-tools/process_release_requests.py index 0b039e1d9b..ccc5197043 100755 --- a/roles/copy-release-tools-scripts/files/release-tools/process_release_requests.py +++ b/roles/copy-release-tools-scripts/files/release-tools/process_release_requests.py @@ -113,7 +113,7 @@ def get_branch(series_status, series_name): branch = "master" elif series.get("name") == series_name: # Grab the release-id; then fall back to the supplied name - branch = "stable/" + series.get("release-id", series_name) + branch = "stable/" + str(series.get("release-id", series_name)) return branch