Werk #7057: Allow "coding" comment in notification scripts
Komponente | Notifications |
Titel | Allow "coding" comment in notification scripts |
Datum | 01.02.2019 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk-Version | 1.5.0p12 1.6.0b1 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
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.