summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmchooser/files/xmlfilter.sh
diff options
context:
space:
mode:
authorVolker Uhrig2008-10-07 18:21:20 +0200
committerVolker Uhrig2008-10-07 18:21:20 +0200
commit3db6b756aaf824504f3a91ff21db7f07f1b4fbd2 (patch)
tree86f4a5f7d8116ef6c16e379486289b5bf897bd0b /os-plugins/plugins/vmchooser/files/xmlfilter.sh
parent* fixed path of stage3 depended configuration file (diff)
downloadcore-3db6b756aaf824504f3a91ff21db7f07f1b4fbd2.tar.gz
core-3db6b756aaf824504f3a91ff21db7f07f1b4fbd2.tar.xz
core-3db6b756aaf824504f3a91ff21db7f07f1b4fbd2.zip
* fixed variable
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2266 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmchooser/files/xmlfilter.sh')
-rwxr-xr-xos-plugins/plugins/vmchooser/files/xmlfilter.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/os-plugins/plugins/vmchooser/files/xmlfilter.sh b/os-plugins/plugins/vmchooser/files/xmlfilter.sh
index f734ea2f..4e056482 100755
--- a/os-plugins/plugins/vmchooser/files/xmlfilter.sh
+++ b/os-plugins/plugins/vmchooser/files/xmlfilter.sh
@@ -11,11 +11,11 @@ if [ -f /etc/opt/openslx/vmchooser-stage3.conf ]; then
. /etc/opt/openslx/vmchooser-stage3.conf
fi
-if [ -n ${env} ]; then
+if [ -n ${vmchooser_env} ]; then
for FILE in $1/*.xml
do
# filter all xmls with pool-param not equal to slxgroup
- if [ `grep "<pools param=\".*${env}.*\"" $FILE | wc -l` -eq 1 ]; then
+ if [ `grep "<pools param=\".*${vmchooser_env}.*\"" $FILE | wc -l` -eq 1 ]; then
echo $FILE;
fi
done