diff options
author | Oliver Tappe | 2008-05-24 13:52:27 +0200 |
---|---|---|
committer | Oliver Tappe | 2008-05-24 13:52:27 +0200 |
commit | 3c302c84c1d7a006ff3000aca380edb16ca2b5a7 (patch) | |
tree | 557e9a7003ac2dd9f9f37af00a067aa4607a867c /config-db/slxconfig-demuxer | |
parent | * implemented checking of attributes for groups and clients in slxconfig (diff) | |
download | core-3c302c84c1d7a006ff3000aca380edb16ca2b5a7.tar.gz core-3c302c84c1d7a006ff3000aca380edb16ca2b5a7.tar.xz core-3c302c84c1d7a006ff3000aca380edb16ca2b5a7.zip |
* added checking of attributes for every client & system before its attributes are
being written to a configuration file - any problems are reported as warnings
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1790 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db/slxconfig-demuxer')
-rwxr-xr-x | config-db/slxconfig-demuxer | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index 9cff4360..c7e5b47e 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -641,6 +641,16 @@ sub writeClientConfigurationsForSystem $externalSystemID, $buildPath, $externalClientName ); + my $attrsOK = eval { + OpenSLX::AttributeRoster->checkValues( + $client->{attrs}, $info->{'vendor-os'}->{name} + ); + 1; + }; + if (!$attrsOK && $@) { + warn substr($@, 4); # remove leading '*** ' + } + writeAttributesToFile($client, $attrFile); # create tar containing external system configuration |