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

[Backport 4.3-1.2-wzd] Fix modules settings persistence between updates #4385

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

Desvelao
Copy link
Member

@Desvelao Desvelao commented Aug 5, 2022

Backport from #4359.

* fix(plugin-initialize): migrate the host configuration in the registry file when changing the plugin version or revision

- Migrated the existent host configuration in the registry file when changing the
  plugin version or revision instead of remove it when it was rebuilt.
- Removed not necessary return statements
- Removed not necessary try/catch block
- Added some logs
- Enhanced some log messages
- Created tests for the migration registry file

* changelog: add PR entry

* changelog: removed new line

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit 3e056c5)
@Desvelao Desvelao merged commit a3d62f1 into 4.3-1.2-wzd Aug 5, 2022
@Desvelao Desvelao deleted the backport-4359-to-4.3-1.2-wzd branch August 5, 2022 07:24
@Desvelao Desvelao linked an issue Aug 5, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Module settings are not persistent between updates
1 participant