More nits

This commit is contained in:
Peter Eckersley 2015-10-17 13:13:00 -07:00
parent f7bfb5ba8d
commit a841c4fc5d
2 changed files with 5 additions and 5 deletions

View file

@ -328,11 +328,11 @@ def diagnose_configurator_problem(cfg_type, requested, plugins):
if requested:
if requested not in plugins:
msg = "The requested " + requested + " plugin does not appear to be installed"
msg = "The requested {0} plugin does not appear to be installed".format(requested)
raise errors.ConfiguratorError, msg
else:
msg = "The " + requested + " plugin is not working; there may be problems "
msg += "with your existing configuration"
msg = ("The {0} plugin is not working; there may be problems with "
"your existing configuration").format(requested)
raise errors.ConfiguratorError, msg
raise errors.ConfiguratorError, cfg_type + " could not be determined or is not installed"
@ -362,7 +362,6 @@ def choose_configurator_plugins(args, config, plugins, verb):
if args.apache:
req_inst = set_configurator(req_inst, "apache")
req_auth = set_configurator(req_auth, "apache")
logger.debug("Requested authenticator %s and installer %s", req_auth, req_inst)
# Try to meet the user's request and/or ask them to pick plugins

View file

@ -13,9 +13,10 @@ from letsencrypt import account
from letsencrypt import configuration
from letsencrypt import errors
from letsencrypt.plugins import disco
from letsencrypt.tests import renewer_test
from letsencrypt.tests import test_util
from letsencrypt.plugins import disco
CSR = test_util.vector_path('csr.der')