Skip to content

Commit

Permalink
Merge pull request #85 from Seravo/master
Browse files Browse the repository at this point in the history
Allow Zabbix API v3.4 access (Closes: #81)
  • Loading branch information
gdubicki committed Dec 16, 2018
2 parents 6af62d6 + 7febd76 commit 5608687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zabbixapi/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def initialize(options = {})
@proxy_port = @proxy_uri.port
@proxy_user, @proxy_pass = @proxy_uri.userinfo.split(/:/) if @proxy_uri.userinfo
end
unless api_version =~ /(2\.4|3\.[02])\.\d+/
unless api_version =~ /(2\.4|3\.[024])\.\d+/
raise ApiError.new("Zabbix API version: #{api_version} is not support by this version of zabbixapi")
end
@auth_hash = auth
Expand Down

0 comments on commit 5608687

Please sign in to comment.