Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #20212: parent ticket didn't totally solve the issue #3973

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions relay/sources/rudder-pkg/lib/rudder-pkg/rudderPkgUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,19 @@ def run_script(name, script_dir, exist, exit_on_error=True):


def jar_status(name, enable):

# we can only enable if the name is in the list of registered jar
if enable:
canEnable = False
for plugin in DB['plugins'].keys():
metadata = DB['plugins'][plugin]
if 'jar-files' in metadata:
if name in metadata['jar-files']:
canEnable = True
if not canEnable:
logger.info("Don't restore jar " + name + ' as it is not in the list of registered jar')
return

global jetty_needs_restart
text = open(PLUGINS_CONTEXT_XML).read()

Expand Down