We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 36a5d1b + b600359 commit 4b617a1Copy full SHA for 4b617a1
1 file changed
agent/sbd.in
@@ -45,7 +45,7 @@ sbd_validate_timeout() {
45
esac
46
crm_timeout=$[$(crm_attribute -t crm_config -G -n stonith-timeout -d 20s -q | sed -e 's/\(.*\)s/\1/' -e 's/\(.*\)m/\1*60/')]
47
sbd_timeout=$(sbd -d $sbd_device dump | perl -ne 'if (/msgwait.*: (\d+)/) { print "$1\n"; }' | head -n 1)
48
- if [ "$sbd_timeout" -eq "0" ]; then
+ if [ -z "$sbd_timeout" -o "$sbd_timeout" = "0" ]; then
49
return
50
fi
51
0 commit comments