zabbixapi 0.1.5a3 → 0.1.5a4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/zabbixapi/template.rb +8 -2
- data/zabbixapi.gemspec +1 -1
- metadata +1 -1
data/lib/zabbixapi/template.rb
CHANGED
@@ -41,8 +41,14 @@ module Zabbix
|
|
41
41
|
|
42
42
|
unless ( response.empty? ) then
|
43
43
|
result = []
|
44
|
-
response.
|
45
|
-
|
44
|
+
if response.kind_of? Hash
|
45
|
+
response.each_key() do |template_id|
|
46
|
+
result << template_id
|
47
|
+
end
|
48
|
+
elsif response.kind_of? Array
|
49
|
+
response.each do |template_info|
|
50
|
+
result << template_info['templateid']
|
51
|
+
end
|
46
52
|
end
|
47
53
|
else
|
48
54
|
result = nil
|
data/zabbixapi.gemspec
CHANGED