1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #469: Bug setting xen scheduler credits

(cherry picked from commit cf62e17bf0f9e6f5ae506af265b41146c0a9531a)
This commit is contained in:
Javi Fontan 2011-01-20 12:46:37 +01:00
parent 2247ceab5c
commit ca6f5ed215

View File

@ -38,10 +38,10 @@ domain_name=`echo $output | grep 'Started domain' | sed 's/^.*Started domain //'
out=`grep -e '^\#O CPU_CREDITS =' < $domain`
if [ "x$?" != "x0" ]; then
if [ "x$?" = "x0" ]; then
credits=`echo $out | cut -d= -f2 | tr -d ' '`
name=`grep -e '^name =' < $domain | cut -d= -f2 | tr -d ' '`
name=`grep -e '^name =' < $domain | cut -d= -f2 | tr -d ' ' | tr -d "\'"`
$XM_CREDITS -d $name -w $credits