Use setattr in NamespaceConfig (#4362)

* set setattr in NamespaceConfig

* remove unnecessary uses of .namespace

* add simple test to ensure it works
This commit is contained in:
Brad Warren
2017-03-17 13:02:41 -07:00
committed by Peter Eckersley
parent 57f527f818
commit edcfc49303
7 changed files with 26 additions and 18 deletions
+2 -3
View File
@@ -137,9 +137,8 @@ noninstaller_plugins = ["webroot", "manual", "standalone"]
def record_chosen_plugins(config, plugins, auth, inst):
"Update the config entries to reflect the plugins we actually selected."
cn = config.namespace
cn.authenticator = plugins.find_init(auth).name if auth else "None"
cn.installer = plugins.find_init(inst).name if inst else "None"
config.authenticator = plugins.find_init(auth).name if auth else "None"
config.installer = plugins.find_init(inst).name if inst else "None"
def choose_configurator_plugins(config, plugins, verb):