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 #18874: Do not try to upgrade cis or openscap plugins #3491

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
5 changes: 5 additions & 0 deletions relay/sources/rudder-pkg/lib/rudder-pkg/rudderPkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ def install_file(package_files, version, exit_on_error=True):
if exit_on_error:
exit(1)
if exist:
short_name = metadata['name'].replace("rudder-plugin-", "")
# These don't have upgrade scripts for now
if short_name.startswith("cis-") or short_name == "openscap":
logger.info("Skipping update, this package cannot be updated")
break
logger.info("The package is already installed, I will upgrade it.")
script_dir = utils.extract_scripts(metadata, package_file)
utils.run_script("preinst", script_dir, exist, exit_on_error=exit_on_error)
Expand Down