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

B #4164: Disk should be gone after detach (#4232)

This commit is contained in:
Jan Orel 2020-02-20 16:48:11 +01:00 committed by GitHub
parent 792f3042a7
commit 712b080003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ exec_and_log "virsh --connect $LIBVIRT_URI detach-disk $DETACH_PARAMS" \
virsh --connect $LIBVIRT_URI dumpxml $DOMAIN | \
xmllint -xpath "//disk/target[@dev='$TARGET']" - >/dev/null 2>&1
if [ $? -ne 0 ] ; then
if [ $? -eq 0 ] ; then
error_message "Could not detach $TARGET from $DOMAIN"
exit -1
fi