#1699 MM hotfix: fix mirrorlist_server ASN lookups
Closed: Fixed None Opened 14 years ago by mdomsch.

= phenomenon =
some mirrorlist requests were failing, returning "Server Error"
= reason =
bug

= recommendation =
From f8a3a58d7f3d5c32d06780bb6d08333801e406e3 Mon Sep 17 00:00:00 2001
From: Matt Domsch matt@domsch.com
Date: Mon, 28 Sep 2009 15:32:55 -0500
Subject: [PATCH] bugfix: mirrorlist_server: check that asn is in the cache


mirrorlist-server/mirrorlist_server.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mirrorlist-server/mirrorlist_server.py b/mirrorlist-server/mirrorlist_server.py
index eef236d..329014e 100755
--- a/mirrorlist-server/mirrorlist_server.py
+++ b/mirrorlist-server/mirrorlist_server.py
@@ -384,7 +384,7 @@ def do_asn(kwargs, cache, header):
except KeyError:
pass

  • if asn is not None:
  • if asn is not None and asn in asn_host_cache:
    for hostid in asn_host_cache[asn]:
    if hostid in cache['byHostId']:
    hostresults.add(hostid)
    --
    1.6.0.6

will be fixed in MM 1.3.3.

live now with released MM 1.3.3.

Login to comment on this ticket.

Metadata