Werk #7057: Allow "coding" comment in notification scripts

Component Notifications
Title Allow "coding" comment in notification scripts
Date Feb 1, 2019
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.5.0p12 1.6.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

Notification scripts can contain the name of the notification script as a comment after the shebang and the optional encoding comment. When the encoding comment contained only the word "coding" but not "encoding" the encoding comment was accidentally used as the title of the notification script. Now the regular expression from https://docs.python.org/2.7/reference/lexical_analysis.html is used to recognize encoding comments. Therefore, "coding" and "encoding" can now be used.

To the list of all Werks