sensu-extensions-snmp-trap 0.0.31 → 0.0.32

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17e9844d75b6724daf2d8e32267c1906c439c1f7
4
- data.tar.gz: 81e48a1e828bbc194c1618b3eb978308248b3ab9
3
+ metadata.gz: c983a6c7826f1fb432a4ec1188dd8ba52e16bcda
4
+ data.tar.gz: 4d8fbe0f617c55af3bfc71790dce566663bcf5b4
5
5
  SHA512:
6
- metadata.gz: 307d5098b043b4333f40b8b8e8feaf4b20cc4dbc0ec6bdfe491c9b0705eb46d9f3129f41aec87e4b4595d667f1ffd32c5727297ec68be58fd9aa4c1cbb738e71
7
- data.tar.gz: 87dea0b54f9ac5962f2d665e4a65a99c0677045d2c6d8ec00fba0d91f0974e6e6540f7e529178190f2378e874b9173777dd0eed7a1c56cc66cefb5c5b646b0da
6
+ metadata.gz: 5e4b51cc67f73a0dac866c192f3b7972b56781f4410ed85c72e7b51edd9c5146c6e4acfbca9b372b0d1f6f362cf609ef91ad1df5d2201bcc6654df4c3e874991
7
+ data.tar.gz: 43a5bca83521aa6d542dbfa596774b33431fb4437e78eddfcfa5a371e13765c22882b9be5d3cdc441b60a87c4acc9527bf377b1b1e2060cc4006520656fd5520
@@ -68,7 +68,10 @@ module Sensu
68
68
 
69
69
  def convert_to_mapping(configured_mapping)
70
70
  configured_mapping.map do |mapping|
71
- [Regexp.new(mapping.first), mapping.last.to_sym]
71
+ [
72
+ Regexp.new(mapping.first),
73
+ mapping.last.is_a?(String) ? mapping.last.to_sym : mapping.last
74
+ ]
72
75
  end
73
76
  end
74
77
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-extensions-snmp-trap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.31
4
+ version: 0.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Extensions and contributors