diff --git a/src/tm_mad/ssh/recovery_snap_create_live b/src/tm_mad/ssh/recovery_snap_create_live index df8b1025e0..ec4652b302 100755 --- a/src/tm_mad/ssh/recovery_snap_create_live +++ b/src/tm_mad/ssh/recovery_snap_create_live @@ -50,7 +50,7 @@ if [ ! -L $DISK_PATH ]; then fi # skip if VM is not running -if [ "$(virsh -c ${LIBVIRT_URI} domstate one-${VMID} >/dev/null)" != "running" ]; then +if [ "$(virsh -c ${LIBVIRT_URI} domstate one-${VMID} 2>/dev/null)" != "running" ]; then echo "VM ${VMID} is not running" exit 1 fi