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:
parent
1f04dc1fbc
commit
c71234dd90
@ -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" ]
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user