Univention Bugzilla – Bug 51938
don't send mails in dry-run in result hook example
Last modified: 2020-10-12 16:19:02 CEST
When copied to /usr/share/doc/ucs-school-import/pyhooks, the UCS@school import always executes the hook result_hook_example.py. An email is sent to the recipient even if only the dry-run was executed. Fix the example hook result_hook_example.py to only run if no dry-run is executed.
Fixed in branch dtroeder/51938_result_hook: [951000a96] Bug #51938: only run hook if not in dry-run (or forced) Reopen for merge and build.
QA -> All OK -> REOPEN for merge & build Code -> OK Functionality -> Code for email notifications is skipped if dry_run == True or the variable SEND_AFTER_DRY_RUN == True
[4.4] d0f61cc5b Bug #51938: only run hook if not in dry-run (or forced) [4.4] eaccc883f Bug #51938: Merge branch 'dtroeder/51938_result_hook' into 4.4 [4.4] 809c9ebb4 Bug #51938: changelog [4.4] 0fb669104 Bug #51938: advisory ucs-school-import (17.0.46)
QA -> All OK -> Set to VERIFIED Changelog -> OK YAML -> OK Merged without conflicts.
UCS@school 4.4 v7 has been released. https://docs.software-univention.de/changelog-ucsschool-4.4v7-de.html If this error occurs again, please clone this bug.