mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-03 21:52:31 +09:00
Co-authored-by: Anton Todorov <atodorov-storpool@users.noreply.github.com>
(cherry picked from commit cf26a33ca1)
This commit is contained in:
1 parent
d498c4831f
commit
074bced8b4
1 file changed
+1
-1
@@ -24,7 +24,7 @@ TARGET_DEVICE=$2
|
||||
|
||||
if [[ -n "$DOMAIN" ]] && [[ -n "$TARGET_DEVICE" ]]
|
||||
then
|
||||
DISK="$(virsh --connect $LIBVIRT_URI domblklist $DOMAIN | awk "/^ *$TARGET_DEVICE/ {print \$2; exit}")"
|
||||
DISK="$(virsh --connect $LIBVIRT_URI domblklist $DOMAIN | awk "/^\s*$TARGET_DEVICE/ {print \$2; exit}")"
|
||||
if [[ "$DISK" = "-" ]]; then
|
||||
log_debug "CDROM already ejected"
|
||||
exit 0
|
||||
|
||||
Reference in new issue
Block a user