sensu-settings 9.1.0 → 9.1.1

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: 8b950b91c23d3c11482819e912226b3b86ea4a34
4
- data.tar.gz: 29c40cb6cca44e4b658c667e928ed4817256bdd3
3
+ metadata.gz: c312fe827838bf8d652576ee297c42b9c19b34f9
4
+ data.tar.gz: 138febf267d3d57c7e5dbc39fcf0a136cfd98067
5
5
  SHA512:
6
- metadata.gz: 71fe52ecfd5e5b7c5248d584dfb38d599db6641a3bd9fae6af2a43ddfd15589f9d21872b9fd0107cc991f8f62582d3abcb1efe47c031a1cdbd9cd4b58652b457
7
- data.tar.gz: 30dd3f1dad803d23d0d213cc16697f25654eeefe67e14f752272171c0c03fad9a9b7dddd8ecd22f05827bbf51297d7e3fa7c147c331841809e888bc497b7819c
6
+ metadata.gz: 45db8d589b3f1555b172551231837ce1d3f65aabaafee7cbf8fa82a84112b3b69def777d82004bbca206242006c3b3fa84a598b4cbfb408867d02831f75feaa9
7
+ data.tar.gz: 338fc19728d71566ba32e5bf7ff8224af86560bd2620f2b6e4a7865ed43d236cdfd6a4aa14590437ee8b61232285fb9c05c9ccb1b5f4aa28baadfb681d3f19e6
@@ -174,6 +174,7 @@ module Sensu
174
174
  # * Ensuring client subscriptions include a single subscription based on the
175
175
  # client name, e.g "client:i-424242".
176
176
  def load_client_overrides
177
+ @settings[:client] ||= {}
177
178
  @settings[:client][:subscriptions] ||= []
178
179
  @settings[:client][:subscriptions] << "client:#{@settings[:client][:name]}"
179
180
  @settings[:client][:subscriptions].uniq!
@@ -183,7 +184,7 @@ module Sensu
183
184
  # Load overrides, i.e. settings which should always be present.
184
185
  # Examples include client settings overrides which ensure a per-client subscription.
185
186
  def load_overrides!
186
- load_client_overrides
187
+ load_client_overrides if ["client", "rspec"].include?(sensu_service_name)
187
188
  end
188
189
 
189
190
  # Set Sensu settings related environment variables. This method
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-settings"
5
- spec.version = "9.1.0"
5
+ spec.version = "9.1.1"
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.1.0
4
+ version: 9.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-19 00:00:00.000000000 Z
11
+ date: 2016-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-json