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:
parent
ba0c0ad8c4
commit
aac1b1fef3
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user