agent: empty list in AGENT_HOST_PATTERNS means nothing for the service (#5875)

This commit is contained in:
Frédéric Péters 2014-11-05 11:31:29 +01:00
parent 47998e1dcd
commit c10b80958c
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class BaseService(object):
if not settings.AGENT_HOST_PATTERNS:
return True
patterns = settings.AGENT_HOST_PATTERNS.get(self.service_id)
if not patterns:
if patterns is None:
return True
parsed_url = urllib2.urlparse.urlsplit(self.base_url)
netloc = parsed_url.netloc