From ef66d15b2eda7b222ecda8ee73b22b62041d42f6 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Wed, 21 Feb 2018 11:41:18 +0100 Subject: [PATCH] Fix for host_config --- hub/kojihub.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hub/kojihub.py b/hub/kojihub.py index bd82d469..c6d8cfc3 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -4546,9 +4546,9 @@ def get_host(hostInfo, strict=False, event=None): clauses = [eventCondition(event, table='host_config')] if isinstance(hostInfo, (int, long)): - clauses.append("id = %(hostInfo)i") + clauses.append("host.id = %(hostInfo)i") elif isinstance(hostInfo, str): - clauses.append("name = %(hostInfo)s") + clauses.append("host.name = %(hostInfo)s") else: raise koji.GenericError('invalid type for hostInfo: %s' % type(hostInfo)) @@ -10647,7 +10647,7 @@ class RootExports(object): host appears in the list, it will be included in the results. If "ready" and "enabled" are specified, only hosts with the given value for the respective field will be included.""" - clauses = ['active IS TRUE'] + clauses = ['host_config.active IS TRUE'] joins = ['host ON host.id = host_config.host_id'] if arches is not None: if not arches: