zabbixapi 0.5.1b7 → 0.5.1b8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/zabbixapi/basic/basic_logic.rb +3 -3
- data/lib/zabbixapi/version.rb +1 -1
- metadata +2 -2
@@ -41,7 +41,7 @@ class ZabbixApi
|
|
41
41
|
:method => "#{method_name}.get",
|
42
42
|
:params => {
|
43
43
|
:filter => {
|
44
|
-
indentify.to_sym => data[indentify.to_sym]
|
44
|
+
indentify.to_sym => symbolize_keys(data)[indentify.to_sym]
|
45
45
|
},
|
46
46
|
:output => "extend"
|
47
47
|
}
|
@@ -53,7 +53,7 @@ class ZabbixApi
|
|
53
53
|
:method => "#{method_name}.get",
|
54
54
|
:params => {
|
55
55
|
:filter => {
|
56
|
-
key.to_sym => data[key.to_sym]
|
56
|
+
key.to_sym => symbolize_keys(data)[key.to_sym]
|
57
57
|
},
|
58
58
|
:output => "extend"
|
59
59
|
}
|
@@ -71,7 +71,7 @@ class ZabbixApi
|
|
71
71
|
def get_id(data)
|
72
72
|
result = symbolize_keys( get_full_data(data) )
|
73
73
|
id = nil
|
74
|
-
result.each { |item| id = item[key.to_sym].to_i if item[indentify.to_sym] == data[indentify.to_sym] }
|
74
|
+
result.each { |item| id = symbolize_keys(item)[key.to_sym].to_i if symbolize_keys(item)[indentify.to_sym] == data[indentify.to_sym] }
|
75
75
|
id
|
76
76
|
end
|
77
77
|
|
data/lib/zabbixapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zabbixapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1b8
|
5
5
|
prerelease: 5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -63,7 +63,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
63
|
version: '0'
|
64
64
|
segments:
|
65
65
|
- 0
|
66
|
-
hash:
|
66
|
+
hash: -1952167078845178877
|
67
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
68
|
none: false
|
69
69
|
requirements:
|