mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-05-28 04:34:08 -04:00
parent
30d04c423c
commit
52dfd0ceaa
1 changed files with 1 additions and 0 deletions
|
|
@ -168,6 +168,7 @@ class LegacyConfigParser
|
|||
*/
|
||||
protected static function parseHeaderLine($line, Metadata $metadata)
|
||||
{
|
||||
$line = trim($line);
|
||||
if (preg_match('/^\s*#\s+(.+?)\s*:\s*(.+)$/', $line, $m)) {
|
||||
if ($metadata->hasKey($m[1])) {
|
||||
$metadata->set($m[1], $m[2]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue