From 048ce44bbc8bad6ea5665b41f90e47c8ddf0c799 Mon Sep 17 00:00:00 2001 From: Lenka Segura Date: Wed, 4 Dec 2024 23:35:05 +0100 Subject: [PATCH] koji_block_retired: Fix a bug in bodhi url Signed-off-by: Lenka Segura --- toddlers/utils/bodhi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toddlers/utils/bodhi.py b/toddlers/utils/bodhi.py index 46aeeea..d04313b 100644 --- a/toddlers/utils/bodhi.py +++ b/toddlers/utils/bodhi.py @@ -210,7 +210,7 @@ class Bodhi: Raises: toddlers.utils.exceptions.BodhiError when the issue couldn't be retrieved. """ - api_url = f"{0}/list_releases/?name={branch}".format(self._bodhi_url) + api_url = "{0}/list_releases/?name={1}".format(self._bodhi_url, branch.upper()) log.debug("Retrieving branch info from bodhi.") response = self._requests_session.get(api_url)