From 9a30c42a957929394982f6b51274955b80b1f585 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Jun 12 2024 20:29:52 +0000 Subject: Update for newer format of bodhi.update.status.testing message In https://github.com/fedora-infra/bodhi/pull/5538 we dropped most of the `artifact` dict from these messages, things that are duplicated with the `update` dict or not needed. I didn't notice that this project uses one of the removed keys, so it broke. This uses an appropriate replacement from the `update` dict, which has been present in these messages since https://github.com/fedora-infra/bodhi/pull/4381 in 2022. Signed-off-by: Adam Williamson --- diff --git a/monitor_gating/utils.py b/monitor_gating/utils.py index e1eaa73..6fd7172 100644 --- a/monitor_gating/utils.py +++ b/monitor_gating/utils.py @@ -518,8 +518,8 @@ class MonitoringUtils: break # bodhi messages - if "bodhi.update.status.testing" in message["topic"] and message["msg"]["artifact"][ - "id" + if "bodhi.update.status.testing" in message["topic"] and message["msg"]["update"][ + "alias" ].startswith(bodhi_id): success = True returned_status = ""