Allow callback plugins to be whitelisted

This commit is contained in:
James Cammarata
2015-06-29 10:55:48 -04:00
parent e1991d9e32
commit 21c14363fd
2 changed files with 3 additions and 0 deletions

View File

@@ -144,6 +144,8 @@ class TaskQueueManager:
if callback_name != stdout_callback or stdout_callback_loaded:
continue
stdout_callback_loaded = True
elif C.DEFAULT_CALLBACK_WHITELIST is not None and callback_name not in C.DEFAULT_CALLBACK_WHITELIST:
continue
loaded_plugins.append(callback_plugin(self._display))
else: