ServiceController: ignore command lookup errors

They can happen when an invalid command has been chosen
This commit is contained in:
Thomas Gelf 2016-11-18 19:54:47 +01:00
parent 14fce02448
commit 065205dc7a

View File

@ -2,7 +2,7 @@
namespace Icinga\Module\Director\Controllers; namespace Icinga\Module\Director\Controllers;
use Icinga\Module\Director\Exception\NestingError; use Exception;
use Icinga\Module\Director\Web\Controller\ObjectController; use Icinga\Module\Director\Web\Controller\ObjectController;
use Icinga\Module\Director\Objects\IcingaServiceSet; use Icinga\Module\Director\Objects\IcingaServiceSet;
use Icinga\Module\Director\Objects\IcingaService; use Icinga\Module\Director\Objects\IcingaService;
@ -143,8 +143,8 @@ class ServiceController extends ObjectController
array('class' => 'icon-plus') array('class' => 'icon-plus')
); );
} }
} catch (NestingError $nestingError) { } catch (Exception $e) {
// ignore the error for the form // ignore the error, show no apply link
} }
} }