From 4a7a0bd47ad5bb110b3416eca850eee38e01b2c4 Mon Sep 17 00:00:00 2001 From: Peter Eckersley Date: Tue, 9 Feb 2016 10:52:10 -0800 Subject: [PATCH] Update detector's namespace correctly --- letsencrypt/cli.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/letsencrypt/cli.py b/letsencrypt/cli.py index 27c9069c2..f4524d6b7 100644 --- a/letsencrypt/cli.py +++ b/letsencrypt/cli.py @@ -755,8 +755,13 @@ def _set_by_cli(var): default_args = prepare_and_parse_args(plugins, reconstructed_args, detect_defaults=True) detector = _set_by_cli.detector = configuration.NamespaceConfig(default_args, fake=True) # propagate plugin requests: eg --standalone modifies config.authenticator - plugin_reqs = cli_plugin_requests(detector) - detector.authenticator, detector.installer = plugin_reqs + auth, inst = cli_plugin_requests(detector) + if auth: + detector.namespace.__setattr__("authenticator", auth) + if inst: + detector.namespace.__setattr__("installer", inst) + # more spammy than just debug + logger.log(-10, "Default Detector is %r", auth, inst, detector.namespace) try: # Is detector.var something that isn't false?