diff options
author | Oliver Tappe | 2008-01-09 14:38:04 +0100 |
---|---|---|
committer | Oliver Tappe | 2008-01-09 14:38:04 +0100 |
commit | dce5e488056c71657aab0fe7161c17321c301aed (patch) | |
tree | 8b95b29829f73184da8bc0a7b35064d1753b6af5 /config-db/slxconfig-demuxer | |
parent | * added mandatory attributes (active,precedence) to VMware plugin (diff) | |
download | core-dce5e488056c71657aab0fe7161c17321c301aed.tar.gz core-dce5e488056c71657aab0fe7161c17321c301aed.tar.xz core-dce5e488056c71657aab0fe7161c17321c301aed.zip |
* the config-demuxer now only demuxes attributes of active plugins that have
been installed into the current system's vendor-OS.
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1455 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db/slxconfig-demuxer')
-rwxr-xr-x | config-db/slxconfig-demuxer | 8 |
1 files changed, 6 insertions, 2 deletions
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; } |