BusinessProcess: fallback for missing host

This commit is contained in:
Thomas Gelf 2016-11-22 18:00:09 +01:00
parent 0251bc5edb
commit 924a2fd321

View file

@ -482,7 +482,11 @@ class BusinessProcess
if ($pos !== false) {
$host = substr($name, 0, $pos);
$service = substr($name, $pos + 1);
return $this->createService($host, $service);
if ($service === 'Hoststatus') {
return $this->create($host);
} else {
return $this->createService($host, $service);
}
}
throw new Exception(