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

M #-: Add missing space (#1298)

This commit is contained in:
Jan Orel 2021-06-16 10:11:38 +02:00 committed by GitHub
parent 4a1809c0d9
commit 37265a731a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,8 +24,8 @@ TARGET_DEVICE=$2
if [[ -n "$DOMAIN" ]] && [[ -n "$TARGET_DEVICE" ]]
then
disk="$(virsh --connect $LIBVIRT_URI domblklist $DOMAIN | awk "/^$TARGET_DEVICE/ {print \$2; exit}")"
if [[ "$disk" = "-" ]]; then
DISK="$(virsh --connect $LIBVIRT_URI domblklist $DOMAIN | awk "/^ *$TARGET_DEVICE/ {print \$2; exit}")"
if [[ "$DISK" = "-" ]]; then
log_debug "CDROM already ejected"
exit 0
fi