bin/check-consul-leader.rb in sensu-plugins-consul-2.1.0 vs bin/check-consul-leader.rb in sensu-plugins-consul-2.1.1
- old
+ new
@@ -69,9 +69,10 @@
option :timeout,
description: 'connection will time out after this many seconds',
short: '-t TIMEOUT_IN_SECONDS',
long: '--timeout TIMEOUT_IN_SECONDS',
+ proc: proc { |t| t.to_i },
default: 5
def valid_ip(ip)
case ip.to_s
when Resolv::IPv4::Regex