diff options
author | Oliver Tappe | 2008-01-11 15:16:50 +0100 |
---|---|---|
committer | Oliver Tappe | 2008-01-11 15:16:50 +0100 |
commit | 79787734395e3180f83f6f0edfa1718dd4f250cf (patch) | |
tree | ba1eb16e30b0e335582e3683103051d17a9d1f3b /config-db/OpenSLX | |
parent | * fixed encoding problem of PXE-config file output (diff) | |
download | core-79787734395e3180f83f6f0edfa1718dd4f250cf.tar.gz core-79787734395e3180f83f6f0edfa1718dd4f250cf.tar.xz core-79787734395e3180f83f6f0edfa1718dd4f250cf.zip |
* fixed bug where changing an attribute of a client or system would drop
all other (pre-existing) attributes
* now detailed info about the active plugins are shown when listing a system
* the default attributes of the plugins are now synchronized against the
default system whenever a plugin is installed into a vendor-OS (otherwise,
the respective plugin would not be activated automatically)
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1464 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db/OpenSLX')
-rw-r--r-- | config-db/OpenSLX/ConfigDB.pm | 3 | ||||
-rw-r--r-- | config-db/OpenSLX/DBSchema.pm | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/config-db/OpenSLX/ConfigDB.pm b/config-db/OpenSLX/ConfigDB.pm index 2acffa91..e8d0f560 100644 --- a/config-db/OpenSLX/ConfigDB.pm +++ b/config-db/OpenSLX/ConfigDB.pm @@ -1091,6 +1091,9 @@ sub addInstalledPlugin my $vendorOSID = shift; my $pluginName = shift; + # make sure the attributes of this plugin are available via default system + $self->{'db-schema'}->synchronizeAttributesWithDefaultSystem($self); + return $self->{'meta-db'}->addInstalledPlugin($vendorOSID, $pluginName); } diff --git a/config-db/OpenSLX/DBSchema.pm b/config-db/OpenSLX/DBSchema.pm index e533fe56..195649b9 100644 --- a/config-db/OpenSLX/DBSchema.pm +++ b/config-db/OpenSLX/DBSchema.pm @@ -271,7 +271,7 @@ sub checkAndUpgradeDBSchemaIfNecessary ); } $metaDB->schemaSetDBVersion($DbSchema->{version}); - $self->_synchronizeAttributesWithDefaultSystem($configDB); + $self->synchronizeAttributesWithDefaultSystem($configDB); vlog(1, _tr('DB has been created successfully')); } elsif ($currVersion < $DbSchema->{version}) { vlog( @@ -282,7 +282,7 @@ sub checkAndUpgradeDBSchemaIfNecessary ) ); $self->_schemaUpgradeDBFrom($metaDB, $currVersion); - $self->_synchronizeAttributesWithDefaultSystem($configDB); + $self->synchronizeAttributesWithDefaultSystem($configDB); vlog(1, _tr('upgrade done')); } else { vlog(1, _tr('DB matches current schema version (%s)', $currVersion)); @@ -301,7 +301,7 @@ sub getColumnsOfTable @{$DbSchema->{tables}->{$tableName}->{cols}}; } -sub _synchronizeAttributesWithDefaultSystem +sub synchronizeAttributesWithDefaultSystem { my $self = shift; my $configDB = shift; |