ServiceController: Don't fetch volatile states

This commit is contained in:
Johannes Meyer 2019-10-11 15:48:53 +02:00 committed by Eric Lippmann
parent c94c18e570
commit 7dccd079a3

View file

@ -5,7 +5,6 @@ namespace Icinga\Module\Eagle\Controllers;
use Icinga\Exception\NotFoundError;
use Icinga\Module\Eagle\Common\CommandActions;
use Icinga\Module\Eagle\Model\Service;
use Icinga\Module\Eagle\Redis\VolatileState;
use Icinga\Module\Eagle\Web\Controller;
use Icinga\Module\Eagle\Widget\ServiceListItem;
@ -36,10 +35,6 @@ class ServiceController extends Controller
throw new NotFoundError($this->translate('Service not found'));
}
$volatileState = new VolatileState($this->getRedis());
$volatileState->add($service);
$volatileState->fetch();
$this->service = $service;
}