From b8ed86a679275fbcbcadb6c06b2e032233f233cd Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sat, 24 May 2008 13:49:31 +0000 Subject: * added checking of system attributes, too (before only clients were checked) * minor cleanup of output format when complaining about problematic attribute values git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1792 95ad53e4-c205-0410-b2fa-d234c58c8868 --- config-db/slxconfig-demuxer | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'config-db/slxconfig-demuxer') diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index c7e5b47e..6eb613a3 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -648,7 +648,7 @@ sub writeClientConfigurationsForSystem 1; }; if (!$attrsOK && $@) { - warn substr($@, 4); # remove leading '*** ' + warn $@; } writeAttributesToFile($client, $attrFile); @@ -745,6 +745,17 @@ sub writeSystemConfiguration $info->{'attr-digest'} ) ); + + my $attrsOK = eval { + OpenSLX::AttributeRoster->checkValues( + $info->{attrs}, $info->{'vendor-os'}->{name} + ); + 1; + }; + if (!$attrsOK && $@) { + warn $@; + } + my $attrFile = "$buildPath/initramfs/machine-setup"; writeAttributesToFile($info, $attrFile); -- cgit v1.2.3-55-g7522