diff options
-rw-r--r-- | config-db/OpenSLX/ConfigDB.pm | 3 | ||||
-rwxr-xr-x | config-db/slxconfig-demuxer | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/config-db/OpenSLX/ConfigDB.pm b/config-db/OpenSLX/ConfigDB.pm index 329473ce..2acffa91 100644 --- a/config-db/OpenSLX/ConfigDB.pm +++ b/config-db/OpenSLX/ConfigDB.pm @@ -2613,6 +2613,9 @@ sub aggregatedSystemFileInfoFor ); } $info->{'vendor-os'} = $vendorOS; + + my @installedPlugins = $self->fetchInstalledPlugins($vendorOS->{id}); + $info->{'installed-plugins'} = \@installedPlugins; # check if the specified kernel file really exists (follow links while # checking) and if not, find the newest kernel file that is available. diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index 485a7545..2085461e 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -45,7 +45,6 @@ use lib "$FindBin::RealBin"; use OpenSLX::Basics; use OpenSLX::ConfigDB qw(:support); use OpenSLX::ConfigFolder; -use OpenSLX::OSPlugin::Engine; use OpenSLX::Utils; my $pxeDefaultTemplate = q[NOESCAPE 0 @@ -596,12 +595,15 @@ sub writePluginConfigurationsForSystem my $attrs = $info->{attrs} || {}; - foreach my $pluginName (OpenSLX::OSPlugin::Engine->getAvailablePlugins()) { + my @activePlugins; + foreach my $pluginName (@{$info->{'installed-plugins'}}) { vlog(2, _tr("checking configuration of plugin '%s'", $pluginName)); # skip inactive plugins my $pluginScope = lc($pluginName); next unless $attrs->{"${pluginScope}::active"}; + + push @activePlugins, $pluginName; vlog(2, _tr("writing configuration file for plugin '%s'", $pluginName)); # write plugin configuration to a file: @@ -636,6 +638,8 @@ sub writePluginConfigurationsForSystem ); } } + my $activePluginStr = @activePlugins ? join ',', @activePlugins : '<none>'; + vlog(0, _tr("active plugins: %s", $activePluginStr)); return; } |