mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 16:22:18 -04:00
Use new selection logic for "auth"
Also: why was auth selecting installers?
This commit is contained in:
parent
a841c4fc5d
commit
7c92db095f
1 changed files with 7 additions and 8 deletions
|
|
@ -419,15 +419,14 @@ def auth(args, config, plugins):
|
|||
# supplied, check if CSR matches given domains?
|
||||
return "--domains and --csr are mutually exclusive"
|
||||
|
||||
authenticator = display_ops.pick_authenticator(
|
||||
config, args.authenticator, plugins)
|
||||
if authenticator is None:
|
||||
return "Authenticator could not be determined"
|
||||
try:
|
||||
installer, authenticator = choose_configurator_plugins(args, config, plugins, "auth")
|
||||
except errors.ConfiguratorError, e:
|
||||
return e.message
|
||||
|
||||
if args.installer is not None:
|
||||
installer = display_ops.pick_installer(config, args.installer, plugins)
|
||||
else:
|
||||
installer = None
|
||||
installer = None # we're doing auth!
|
||||
if args.installer:
|
||||
return "Specifying an installer doesn't make sense in auth mode!"
|
||||
|
||||
# TODO: Handle errors from _init_le_client?
|
||||
le_client = _init_le_client(args, config, authenticator, installer)
|
||||
|
|
|
|||
Loading…
Reference in a new issue