Private GIT

Skip to content
Snippets Groups Projects
Commit 52661030 authored by loiclau's avatar loiclau Committed by Matthieu Kermagoret
Browse files

fix(api rest) fix service child

parent 75d09d58
No related branches found
No related tags found
No related merge requests found
......@@ -379,6 +379,7 @@ class CentreonRtDowntime extends CentreonObject
$withServices,
$comment
) {
$withServices = 0;
// Check if a pipe is present
if (preg_match('/^(.+)\|(.+)$/', $resource, $matches)) {
$this->externalCmdObj->addSvcDowntime(
......@@ -462,6 +463,7 @@ class CentreonRtDowntime extends CentreonObject
$withServices,
$comment
) {
$withServices = 0;
$serviceList = $this->sgObject->getServicesByServicegroupName($resource);
foreach ($serviceList as $service) {
$this->externalCmdObj->addSvcDowntime(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment