Repository :
http://git.fedorahosted.org/cgit/
On branch : master
---------------------------------------------------------------
commit c0c8eaf450fbe0a2300e35c678a0fdca0bcd1f67
Author: Matt Domsch <matt(a)domsch.com>
Date: Thu Jul 11 16:25:18 2013 -0500
crawler_perhost: fix traceback by moving host definition higher
---------------------------------------------------------------
server/crawler_perhost | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/crawler_perhost b/server/crawler_perhost
index b546bab..58cb531 100755
--- a/server/crawler_perhost
+++ b/server/crawler_perhost
@@ -646,11 +646,11 @@ def sighup_handler(signum, frame):
def select_host_categories_to_scan(options):
result = []
+ host = Host.get(options.hostid)
if len(options.categories):
for c in options.categories:
try:
category = Category.byName(c)
- host = Host.get(options.hostid)
hc = HostCategory.selectBy(host=host, category=category)[0]
result.append(hc)
except SQLObjectNotFound: