|
5 | 5 |
|
6 | 6 | namespace Icinga\Module\Businessprocess\Controllers; |
7 | 7 |
|
8 | | -use Icinga\Application\Modules\Module; |
9 | 8 | use Icinga\Date\DateFormatter; |
10 | 9 | use Icinga\Module\Businessprocess\BpConfig; |
11 | 10 | use Icinga\Module\Businessprocess\BpNode; |
12 | 11 | use Icinga\Module\Businessprocess\Forms\AddNodeForm; |
13 | 12 | use Icinga\Module\Businessprocess\Forms\EditNodeForm; |
14 | 13 | use Icinga\Module\Businessprocess\Node; |
15 | | -use Icinga\Module\Businessprocess\ProvidedHook\Icingadb\IcingadbSupport; |
16 | 14 | use Icinga\Module\Businessprocess\Renderer\Breadcrumb; |
17 | 15 | use Icinga\Module\Businessprocess\Renderer\Renderer; |
18 | 16 | use Icinga\Module\Businessprocess\Renderer\TileRenderer; |
19 | 17 | use Icinga\Module\Businessprocess\Renderer\TreeRenderer; |
20 | 18 | use Icinga\Module\Businessprocess\Simulation; |
21 | | -use Icinga\Module\Businessprocess\State\IcingaDbState; |
22 | | -use Icinga\Module\Businessprocess\State\MonitoringState; |
23 | 19 | use Icinga\Module\Businessprocess\Storage\ConfigDiff; |
24 | 20 | use Icinga\Module\Businessprocess\Storage\LegacyConfigRenderer; |
25 | 21 | use Icinga\Module\Businessprocess\Web\Component\ActionBar; |
@@ -97,14 +93,7 @@ public function showAction() |
97 | 93 | $bp = $this->loadModifiedBpConfig(); |
98 | 94 | $node = $this->getNode($bp); |
99 | 95 |
|
100 | | - if ( |
101 | | - Module::exists('icingadb') && |
102 | | - (! $bp->hasBackendName() && IcingadbSupport::useIcingaDbAsBackend()) |
103 | | - ) { |
104 | | - IcingaDbState::apply($bp); |
105 | | - } else { |
106 | | - MonitoringState::apply($bp); |
107 | | - } |
| 96 | + $bp->applyDbStates(); |
108 | 97 |
|
109 | 98 | $this->handleSimulations($bp); |
110 | 99 |
|
|
0 commit comments