Do not set Backend in Metadata to null in case icingadb module doesnot exist.

This commit is contained in:
raviks789 2022-02-10 16:26:40 +01:00
parent 6ebaedccf4
commit a5165ef476
3 changed files with 0 additions and 11 deletions

View file

@ -85,10 +85,6 @@ class NodeController extends Controller
continue;
}
if (! Module::exists('icingadb')) {
$config->getMetadata()->set('Backend', null);
}
if (Module::exists('icingadb') &&
($config->getBackendName() === '_icingadb' || IcingadbSupport::useIcingaDbAsBackend())
) {

View file

@ -84,10 +84,6 @@ class ProcessController extends Controller
$bp = $this->loadModifiedBpConfig();
$node = $this->getNode($bp);
if (! Module::exists('icingadb')) {
$bp->getMetadata()->set('Backend', null);
}
if (Module::exists('icingadb') &&
($bp->getBackendName() === '_icingadb' || IcingadbSupport::useIcingaDbAsBackend())
) {

View file

@ -94,9 +94,6 @@ class Dashboard extends BaseHtmlElement
}
$bp = $storage->loadProcess($name);
if (! Module::exists('icingadb')) {
$bp->getMetadata()->set('Backend', null);
}
if (Module::exists('icingadb') &&
($bp->getBackendName() === '_icingadb' || IcingadbSupport::useIcingaDbAsBackend())