koji_block_retired: Fix a bug in bodhi url

Signed-off-by: Lenka Segura <lsegura@redhat.com>
This commit is contained in:
Lenka Segura 2024-12-04 23:35:05 +01:00
parent dba8da1dc6
commit 048ce44bbc

View file

@ -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)