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

This commit is contained in:
Jan Orel authored and GitHub committed 2020-02-20 16:48:11 +01:00
1 parent 792f3042a7
commit 712b080003
1 file changed
+1 -1
+1 -1
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