dom0/DispVM: minor simplification

This commit is contained in:
Marek Marczykowski 2012-01-11 23:13:03 +01:00
parent 1f5b333712
commit e36761faed

View File

@ -25,14 +25,8 @@ if ! qvm-start $1 --no-guid --dvm ; then
exit 1
fi
ID=none
for i in $(xenstore-list /local/domain) ; do
name=$(xenstore-read /local/domain/$i/name)
if [ "x"$name = "x"$1 ] ; then
ID=$i
fi
done
if [ $ID = none ] ; then
ID=`xl domid $1`
if [ "$ID" = "" ] ; then
echo cannot get domain id
exit 1
fi