From 924a2fd321666f6f96fc93a8f22fc9d5cf7b8232 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 22 Nov 2016 18:00:09 +0100 Subject: [PATCH] BusinessProcess: fallback for missing host --- library/Businessprocess/BusinessProcess.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/Businessprocess/BusinessProcess.php b/library/Businessprocess/BusinessProcess.php index 1789415..81b86c1 100644 --- a/library/Businessprocess/BusinessProcess.php +++ b/library/Businessprocess/BusinessProcess.php @@ -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(