sensu-settings 9.7.0 → 9.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 032bd11747ae6ca9be56e9634863f385fabb5b60
4
- data.tar.gz: 7e2372017f50b83b8e2a825d994faa99776b132d
3
+ metadata.gz: 417045b32942806ce02f52f28dcab9ee41c3c8d9
4
+ data.tar.gz: f6ae85f63436e637984525ebfa974d67c146e614
5
5
  SHA512:
6
- metadata.gz: 9ed866698f49310e81b106b5424bb9f5c4457584aae40f1240e8cafb046bcc16dc6af332de9d9c6f89a3a1ac6481df11ddd8374dafb715b541b71a3ea782acac
7
- data.tar.gz: 760aa8d2cd35951ac1467fb9c7638a7a99d89efe574a0532c4dcadf0dc0f0aaa84db58b11c949a44ef8f7647d9b5fbb79aae023f420461f4ad13be81c2154c15
6
+ metadata.gz: 9b043f5ea045abdc56a4aec630f19d95d6212ed32b6973d898dcc49e354303e6dd245d53263faaecd5ea64304910ba54b9e54cd14b3cf1989960f4d780936307
7
+ data.tar.gz: 3e6d844a34c4fb67ba6beccda5117ef08481cb5ac02540a223cc8f049794533b7cce7632ea57d08f51b3307798bfe9c095bfe8842ca50b2ff31c7c7423ed1d75
@@ -176,9 +176,16 @@ module Sensu
176
176
  # client name, e.g "client:i-424242".
177
177
  def load_client_overrides
178
178
  @settings[:client][:subscriptions] ||= []
179
- @settings[:client][:subscriptions] << "client:#{@settings[:client][:name]}"
180
- @settings[:client][:subscriptions].uniq!
181
- warning("applied sensu client overrides", :client => @settings[:client])
179
+ if @settings[:client][:subscriptions].is_a?(Array)
180
+ @settings[:client][:subscriptions] << "client:#{@settings[:client][:name]}"
181
+ @settings[:client][:subscriptions].uniq!
182
+ warning("applied sensu client overrides", :client => @settings[:client])
183
+ else
184
+ warning("unable to apply sensu client overrides", {
185
+ :reason => "client subscriptions is not an array",
186
+ :client => @settings[:client]
187
+ })
188
+ end
182
189
  end
183
190
 
184
191
  # Load overrides, i.e. settings which should always be present.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-settings"
5
- spec.version = "9.7.0"
5
+ spec.version = "9.8.0"
6
6
  spec.authors = ["Sean Porter"]
7
7
  spec.email = ["portertech@gmail.com"]
8
8
  spec.summary = "The Sensu settings library, loader and validator"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.7.0
4
+ version: 9.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-15 00:00:00.000000000 Z
11
+ date: 2017-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-json