mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
ServiceController: ignore command lookup errors
They can happen when an invalid command has been chosen
This commit is contained in:
parent
14fce02448
commit
065205dc7a
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Icinga\Module\Director\Controllers;
|
||||
|
||||
use Icinga\Module\Director\Exception\NestingError;
|
||||
use Exception;
|
||||
use Icinga\Module\Director\Web\Controller\ObjectController;
|
||||
use Icinga\Module\Director\Objects\IcingaServiceSet;
|
||||
use Icinga\Module\Director\Objects\IcingaService;
|
||||
@ -143,8 +143,8 @@ class ServiceController extends ObjectController
|
||||
array('class' => 'icon-plus')
|
||||
);
|
||||
}
|
||||
} catch (NestingError $nestingError) {
|
||||
// ignore the error for the form
|
||||
} catch (Exception $e) {
|
||||
// ignore the error, show no apply link
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user