bin/check-redis-info.rb in sensu-plugins-redis-2.2.0 vs bin/check-redis-info.rb in sensu-plugins-redis-2.2.1
- old
+ new
@@ -68,9 +68,10 @@
option :timeout,
short: '-t TIMEOUT',
long: '--timeout TIMEOUT',
description: 'Redis connection timeout',
+ proc: proc(&:to_i),
required: false,
default: 5
def run
options = if config[:socket]