summaryrefslogtreecommitdiffstats
path: root/config-db/slxconfig-demuxer
diff options
context:
space:
mode:
authorOliver Tappe2008-05-24 15:49:31 +0200
committerOliver Tappe2008-05-24 15:49:31 +0200
commitb8ed86a679275fbcbcadb6c06b2e032233f233cd (patch)
treef293e8b7ad9b8856be1b35cfcf39888afd35e74c /config-db/slxconfig-demuxer
parent* make sure to remove all warning- and error-indicator strings already contained (diff)
downloadcore-b8ed86a679275fbcbcadb6c06b2e032233f233cd.tar.gz
core-b8ed86a679275fbcbcadb6c06b2e032233f233cd.tar.xz
core-b8ed86a679275fbcbcadb6c06b2e032233f233cd.zip
* 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
Diffstat (limited to 'config-db/slxconfig-demuxer')
-rwxr-xr-xconfig-db/slxconfig-demuxer13
1 files changed, 12 insertions, 1 deletions
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);