Skip to content

Adapt Python DIR and SD plugin Baseclasses to the modernized Python plugin API (backport of PR #923)#957

Merged
pstorz merged 3 commits intobareos-20from
dev/sduehr/bareos-20/fix-python-dir-sd-plugin
Oct 19, 2021
Merged

Adapt Python DIR and SD plugin Baseclasses to the modernized Python plugin API (backport of PR #923)#957
pstorz merged 3 commits intobareos-20from
dev/sduehr/bareos-20/fix-python-dir-sd-plugin

Conversation

@sduehr
Copy link
Member

@sduehr sduehr commented Oct 13, 2021

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

General
  • PR name is meaningful
  • Purpose of the PR is understood
  • Separate commit for this PR in the CHANGELOG.md, PR number referenced is same
  • Commit descriptions are understandable and well formatted
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR
  • bareos-check-sources --since-merge does not report any problems
  • git status should not report modifications in the source tree after building and testing

Adapted the director and storagedaemon python plugin baseclasses to the
modernized python plugin interface.

Also changed the systemtests so that they use the baseclasses.

(cherry picked from commit 07ccf62)
For the python director plugin, plugin_context must not be declared
thread_local in bareosdir.h, otherwise DebugMessage will throw the
plugin_ctx is unset runtime error after the bDirEventJobRun and
bDirEventJobEnd events.

(cherry picked from commit 758f85b)
@sduehr sduehr added the is a backport to 20 This is a backport from master to bareos-20 label Oct 13, 2021
@sduehr sduehr self-assigned this Oct 13, 2021
@sduehr sduehr requested a review from pstorz October 14, 2021 13:59
Copy link
Member

@pstorz pstorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you

@pstorz pstorz merged commit 2cfade0 into bareos-20 Oct 19, 2021
@pstorz pstorz deleted the dev/sduehr/bareos-20/fix-python-dir-sd-plugin branch October 19, 2021 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

is a backport to 20 This is a backport from master to bareos-20

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants