diff options
author | Oliver Tappe | 2009-01-28 12:18:45 +0100 |
---|---|---|
committer | Oliver Tappe | 2009-01-28 12:18:45 +0100 |
commit | 49362ffd959fcf42af8866f69e9d93c9fb541232 (patch) | |
tree | 722c5dea2b98b8a68169a0c1ab4be8dc4fe677f1 /config-db | |
parent | * removed setting default values for attributes that do not exist anymore (diff) | |
download | core-49362ffd959fcf42af8866f69e9d93c9fb541232.tar.gz core-49362ffd959fcf42af8866f69e9d93c9fb541232.tar.xz core-49362ffd959fcf42af8866f69e9d93c9fb541232.zip |
* refactored common stuff from PrebootCD into Preboot, as there will be other
variants, later (like PrebootDisk, etc.)
* adjusted naming to follow our style better (no more all-caps)
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2535 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db')
-rwxr-xr-x | config-db/slxconfig-demuxer | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index 9d5cd7e9..b9f2a8dd 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -317,7 +317,11 @@ sub bootEnvironmentForType { my $bootType = shift || 'pxe'; - $bootType =~ tr{[a-z]\-}{[A-Z]_}; + my %bootTypeMap = ( + 'pxe' => 'PXE', + 'preboot-cd' => 'PrebootCD', + ); + $bootType = $bootTypeMap{lc($bootType)}; if (!$bootEnvMap{$bootType}) { my $bootEnv = instantiateClass("OpenSLX::BootEnvironment::$bootType"); |