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

bug #1255: make sure the VM is undefined before deploying it

This commit is contained in:
Javi Fontan 2012-09-20 18:24:58 +02:00
parent 3325f29bca
commit 1284b7aa18

View File

@ -24,6 +24,8 @@ domain=$1
mkdir -p `dirname $domain`
cat > $domain
virsh --connect $LIBVIRT_URI undefine $domain
data=`virsh --connect $LIBVIRT_URI create $domain`
if [ "x$?" = "x0" ]; then