mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +09:00
1 parent
792f3042a7
commit
712b080003
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user