diff options
author | Oliver Tappe | 2008-08-21 21:32:27 +0200 |
---|---|---|
committer | Oliver Tappe | 2008-08-21 21:32:27 +0200 |
commit | d0d21c0a14613f6d775d20540dc3e6d8e8857e4c (patch) | |
tree | 33f2d09c54645c8ba7d971c084f4c4a588f925fc /config-db/slxconfig | |
parent | * updated busybox README to current state of things (diff) | |
download | core-d0d21c0a14613f6d775d20540dc3e6d8e8857e4c.tar.gz core-d0d21c0a14613f6d775d20540dc3e6d8e8857e4c.tar.xz core-d0d21c0a14613f6d775d20540dc3e6d8e8857e4c.zip |
* slxconfig and slxos-plugin now treat the name 'default' as an alias for
'<<<default>>>', which spares us all unnecessary typing ;-)
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2073 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db/slxconfig')
-rwxr-xr-x | config-db/slxconfig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config-db/slxconfig b/config-db/slxconfig index bd0ca6bd..9a29d1c5 100755 --- a/config-db/slxconfig +++ b/config-db/slxconfig @@ -977,7 +977,7 @@ sub changeClientInConfigDB "you have to specify the name of the client you'd like to change!\n" ); } - + my @clientKeys = $openslxDB->getColumnsOfTable('client'); push @clientKeys, 'systems', 'add-systems', 'remove-systems'; my @clientAttrKeys = OpenSLX::AttributeRoster->getClientAttrs(); @@ -1443,6 +1443,9 @@ sub _cleanName return $1; } + # for convenience, we alias default to <<<default>>> + $name = '<<<default>>>' if $name eq 'default'; + return $name; } |