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

bug #4329: Check if the domain exists before trying to cancel it

This commit is contained in:
Ruben S. Montero 2016-05-17 13:53:42 +02:00
parent 1f04dc1fbc
commit c71234dd90

View File

@ -25,9 +25,11 @@ TIMEOUT=60
function destroy_and_monitor
{
virsh --connect $LIBVIRT_URI --readonly dominfo $deploy_id > /dev/null 2>&1 || return 0
virsh --connect $LIBVIRT_URI destroy $deploy_id
virsh --connect $LIBVIRT_URI --readonly dominfo $deploy_id
virsh --connect $LIBVIRT_URI --readonly dominfo $deploy_id > /dev/null 2>&1
[ "x$?" != "x0" ]
}