Fix authenticator and crawler names

Now, the "auth:" and "crawl:" parts are considered part of the name. This fixes
crawlers not being able to find their authenticators.
This commit is contained in:
Joscha
2021-05-15 15:18:16 +02:00
parent a6fdf05ee9
commit 595de88d96
3 changed files with 10 additions and 12 deletions

View File

@ -180,7 +180,7 @@ class CrawlerSection(Section):
value = self.s.get("auth")
if value is None:
self.missing_value("auth")
auth = authenticators.get(f"auth:{value}")
auth = authenticators.get(value)
if auth is None:
self.invalid_value("auth", value, "No such auth section exists")
return auth