#1409 Fix SQL after introduction of host_config
Merged 4 years ago by mikem. Opened 4 years ago by tkopecek.
tkopecek/koji issue1381  into  master

file modified
+1 -1
@@ -11895,7 +11895,7 @@ 

  

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

Fixes: https://pagure.io/koji/issue/1381

Other option is to drop this call completely.

Commit acb38cb fixes this pull-request

Pull-Request has been merged by mikem

4 years ago