From 08e715f6ced1d11027a78fc9b8e26834517c4325 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: May 02 2019 13:09:04 +0000 Subject: Fix SQL after introduction of host_config Fixes: https://pagure.io/koji/issue/1381 --- diff --git a/hub/kojihub.py b/hub/kojihub.py index c305ddc..7ff18b4 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -11895,7 +11895,7 @@ class Host(object): def isEnabled(self): """Return whether this host is enabled or not.""" - query = """SELECT enabled FROM host_config WHERE id = %(id)i AND active IS TRUE""" + query = """SELECT enabled FROM host_config WHERE host_id = %(id)i AND active IS TRUE""" return _singleValue(query, {'id': self.id}, strict=True) class HostExports(object):