More helpful error when renewing with standalone

This commit is contained in:
Peter Eckersley
2016-02-02 16:47:42 -08:00
parent 2c200b1e43
commit ccd58dea5b
3 changed files with 12 additions and 4 deletions
+2 -1
View File
@@ -200,7 +200,8 @@ class Authenticator(common.Plugin):
return self.supported_challenges
def perform(self, achalls): # pylint: disable=missing-docstring
if any(util.already_listening(port) for port in self._necessary_ports):
renewer = self.config.verb == "renew"
if any(util.already_listening(port, renewer) for port in self._necessary_ports):
raise errors.MisconfigurationError(
"At least one of the (possibly) required ports is "
"already taken.")