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:
parent
3325f29bca
commit
1284b7aa18
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user