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

feature #2135: skip xen cancel when VM is not defined

This commit is contained in:
Javi Fontan 2013-09-08 19:18:13 +02:00
parent ba0c0ad8c4
commit aac1b1fef3

View File

@ -25,6 +25,12 @@ function gdm {
$XM_LIST | grep "$deploy_id "
}
OUT=$(gdm)
if [ -z "$OUT" ]; then
exit 0
fi
exec_and_log "$XM_CANCEL $deploy_id" \
"Could not destroy $deploy_id"