Derive preference order from supported_challenges order

This commit is contained in:
Joe Ranweiler
2015-12-11 18:06:11 -08:00
parent c66c6bae1d
commit 2f904a41e0
+1 -2
View File
@@ -197,8 +197,7 @@ class Authenticator(common.Plugin):
def get_chall_pref(self, domain):
# pylint: disable=unused-argument,missing-docstring
return [chall for chall in SUPPORTED_CHALLENGES
if chall in self.supported_challenges]
return self.supported_challenges
def perform(self, achalls): # pylint: disable=missing-docstring
if any(util.already_listening(port) for port in self._necessary_ports):