From 3c302c84c1d7a006ff3000aca380edb16ca2b5a7 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sat, 24 May 2008 11:52:27 +0000 Subject: * 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 --- config-db/slxconfig-demuxer | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'config-db/slxconfig-demuxer') 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 -- cgit v1.2.3-55-g7522