zcollective 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/zcollective +2 -2
- data/lib/zcollective/zabbixclient.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56fd9cc0f29641fe1054333a39830ac21c984ef6
|
4
|
+
data.tar.gz: 51cc1c6d4b4b6313999506d8f21d9328edb847fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b50a79c8a10d9938077364100b8c3492c31cd91738edb8419e224c8fdb060d3305fc5579ea887ccff3dfe3a8e60858329f938fd8b1808cf4294a586baa607eb
|
7
|
+
data.tar.gz: 692ad58709df457ed72a62ff36e6104df21a9c8f2e6014be5b9ccbe48c09e038dfe2f8b457600e8736041752989a962db6eb8c6a6d50473856bc4e88eeed078c
|
data/bin/zcollective
CHANGED
@@ -91,8 +91,8 @@ optparse = OptionParser.new do |opts|
|
|
91
91
|
|
92
92
|
# This timeout matches the default Net::HTTP.read_timeout value.
|
93
93
|
options[:http_timeout] = nil
|
94
|
-
opts.on('--http-timeout', 'Timeout Zabbix API calls after n seconds.') do |hto|
|
95
|
-
options[:http_timeout] = hto
|
94
|
+
opts.on('--http-timeout timeout', 'Timeout Zabbix API calls after n seconds.') do |hto|
|
95
|
+
options[:http_timeout] = hto.to_i
|
96
96
|
end
|
97
97
|
|
98
98
|
options[:host]
|
@@ -99,7 +99,7 @@ module ZCollective
|
|
99
99
|
proxy = ENV['http_proxy'] ? URI.parse(ENV['http_proxy']) : OpenStruct.new
|
100
100
|
http = Net::HTTP::Proxy(proxy.host, proxy.port).new( uri.host, uri.port )
|
101
101
|
http_timeout = @options[:http_timeout]
|
102
|
-
http.read_timeout = http_timeout unless http_timeout.nil?
|
102
|
+
http.read_timeout = http_timeout.to_i unless http_timeout.nil?
|
103
103
|
|
104
104
|
request = Net::HTTP::Post.new( uri.request_uri )
|
105
105
|
request.add_field( 'Content-Type', 'application/json-rpc' )
|