Disable selection of misconfigured plugins

This commit is contained in:
Brad Warren
2015-11-19 21:15:54 -08:00
parent 4ead130438
commit 2e06939fec
+7
View File
@@ -34,6 +34,13 @@ def choose_plugin(prepared, question):
question, opts, help_label="More Info") question, opts, help_label="More Info")
if code == display_util.OK: if code == display_util.OK:
if plugin_ep.misconfigured:
util(interfaces.IDisplay).notification(
"The selected plugin encountered an error while parsing "
"your server configuration and cannot be used. The error "
"was: {0}".format(prepared[index].prepare())
height=display_util.HEIGHT)
else:
return prepared[index] return prepared[index]
elif code == display_util.HELP: elif code == display_util.HELP:
if prepared[index].misconfigured: if prepared[index].misconfigured: