From 326ba42e98c0e0a32dc1086eff92b30960053067 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 12 Jun 2020 22:11:23 +0200 Subject: [PATCH] bodhi/backend: fix typo in the fedora-messaging consumer for the koji sync listener The content variable is the one retrieved from the message bus but we want to access the loaded JSON blob that is in the body of the first comment. So, let's use the proper variable. Signed-off-by: Pierre-Yves Chibon --- roles/bodhi2/backend/files/koji_sync_listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/bodhi2/backend/files/koji_sync_listener.py b/roles/bodhi2/backend/files/koji_sync_listener.py index 86765c9eeb..0b77877ed4 100644 --- a/roles/bodhi2/backend/files/koji_sync_listener.py +++ b/roles/bodhi2/backend/files/koji_sync_listener.py @@ -60,7 +60,7 @@ class KojiSyncListener(object): _log.info("Failed to decode JSON in the issue's initial comment") return False - package = content['repo'] + package = body['repo'] _log.info("Operating on {package}".format(package=package)) sys.stdout.flush()