mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-04 01:09:25 -05:00
parent
4ca360268c
commit
73fe7cd2da
1 changed files with 3 additions and 4 deletions
|
|
@ -203,11 +203,13 @@ class LegacyStorage extends Storage
|
|||
if ($display > 0) {
|
||||
$bp->addRootNode($name);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (preg_match('~^external_info~', $line)) {
|
||||
list($name, $script) = preg_split('~\s*;\s*~', substr($line, 14), 2);
|
||||
$node = $bp->getNode($name)->setInfoCommand($script);
|
||||
return;
|
||||
}
|
||||
|
||||
// New feature:
|
||||
|
|
@ -219,12 +221,9 @@ class LegacyStorage extends Storage
|
|||
if (preg_match('~^info_url~', $line)) {
|
||||
list($name, $url) = preg_split('~\s*;\s*~', substr($line, 9), 2);
|
||||
$node = $bp->getNode($name)->setInfoUrl($url);
|
||||
}
|
||||
|
||||
if (strpos($line, '=') === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
list($name, $value) = preg_split('~\s*=\s*~', $line, 2);
|
||||
|
||||
if (strpos($name, ';') !== false) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue