summaryrefslogtreecommitdiffstats
path: root/application/clicommands/Icinga2Command.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/clicommands/Icinga2Command.php')
-rw-r--r--application/clicommands/Icinga2Command.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/application/clicommands/Icinga2Command.php b/application/clicommands/Icinga2Command.php
index 816e063..e0e0ee4 100644
--- a/application/clicommands/Icinga2Command.php
+++ b/application/clicommands/Icinga2Command.php
@@ -138,6 +138,8 @@ EOT
}
}
+ assert(isset($service), '$service not initialized in the loop');
+
$monObj = $service
? [
"apply Service \"{$icinga2CfgObjPrefix}_{$checkCommand}\" {",