Bug #354
easy method to enable/disable some modules
Start date:
06/18/2009
Due date:
% Done:
100%
Resolution:
Description
An easy method for enabling/disabling some modules is needed, since some of the modules can prevent the correlator from working (dshield for ex) and that Python modules is a pain to disable/remove:
# find /usr -name "dshield.py*" -delete -print /usr/share/pyshared/PreludeCorrelator/plugins/dshield.py /usr/lib/pymodules/python2.5/PreludeCorrelator/plugins/dshield.pyc /usr/lib/pymodules/python2.5/PreludeCorrelator/plugins/dshield.py /usr/lib/pymodules/python2.6/PreludeCorrelator/plugins/dshield.pyc /usr/lib/pymodules/python2.6/PreludeCorrelator/plugins/dshield.py # su -c '/usr/bin/prelude-correlator' -s /bin/sh prelude-correlator Traceback (most recent call last): File "/usr/bin/prelude-correlator", line 8, in <module> load_entry_point('prelude-correlator==0.9.0-beta4', 'console_scripts', 'prelude-correlator')() File "/usr/lib/pymodules/python2.5/PreludeCorrelator/main.py", line 149, in main prelude_client = PreludeClient(print_input=ifd, print_output=ofd, dry_run=options.dry_run) File "/usr/lib/pymodules/python2.5/PreludeCorrelator/main.py", line 45, in __init__ self._pm = pluginmanager.PluginManager() File "/usr/lib/pymodules/python2.5/PreludeCorrelator/pluginmanager.py", line 52, in __init__ plugin_class = entrypoint.load() File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1913, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) ImportError: No module named dshield # aaaaargh -su: aaaaargh: command not found
Associated revisions
Make it possible to disable plugin
It is now possible to add the following setting in prelude-correlator.conf:
[PluginClassName]
disable = true
This fixes #354.
History
#1 Updated by Yoann VANDOORSELAERE about 15 years ago
- Status changed from New to Assigned
- Assignee set to Yoann VANDOORSELAERE
- Target version set to 0.9.0-beta5
#2 Updated by Yoann VANDOORSELAERE about 15 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Applied in changeset abb33fa2dcbbd4163dccd1f7bf74d34a9db0c387.