B #5678: match any whitespace character(s) (#1685)

Co-authored-by: Anton Todorov <atodorov-storpool@users.noreply.github.com>
(cherry picked from commit cf26a33ca1)
This commit is contained in:
Jan Orel authored and Ruben S. Montero committed 2022-01-05 16:46:14 +01:00
1 parent d498c4831f
commit 074bced8b4
1 file changed
+1 -1
+1 -1
View File
@@ -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