mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed test transport form (#8942)
This commit is contained in:
@ -55,13 +55,11 @@ if ($transport_id) {
|
||||
$class = 'LibreNMS\\Alert\\Transport\\' . ucfirst($transport);
|
||||
if (class_exists($class)) {
|
||||
$opts = $config['alert']['transports'][$transport];
|
||||
if ($opts) {
|
||||
$instance = new $class($transport_id);
|
||||
$tmp = $instance->deliverAlert($obj, $opts);
|
||||
if ($tmp) {
|
||||
$status = 'ok';
|
||||
}
|
||||
}
|
||||
}
|
||||
header('Content-type: application/json');
|
||||
echo _json_encode(array('status' => $status));
|
||||
|
Reference in New Issue
Block a user