Skip to content

Commit 00da160

Browse files
committed
monitor: squelch screenshot errors due to guests being shut off
1 parent abe4904 commit 00da160

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

monitor/src/screenshot-guest.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ set -euo pipefail -o bsdecho
44
guest_name=$1; shift
55
output_path=$1; shift
66

7-
virsh screenshot -- "$guest_name" "$output_path" > /dev/null
7+
# Squelch errors due to guests being shut off
8+
virsh screenshot -- "$guest_name" "$output_path" > /dev/null 2>&1

0 commit comments

Comments
 (0)