Werk #12708: 'local' check: raised ValueError (No escaped character) or (No closing quotation)

Component Checks & agents
Title 'local' check: raised ValueError (No escaped character) or (No closing quotation)
Date Apr 13, 2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.0.0p2
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

The way 'local' splits it's input in order to be able to recognize (quoted) service names with spaces (namely shlex.split()) would stumble upon inconsistent input. This change switches back to split() and looks for opening and closing quotes manually and thus eleminating shlex related problems.

To the list of all Werks