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 +4 -4
- data/lib/sensu/settings/loader.rb +10 -3
- data/sensu-settings.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 417045b32942806ce02f52f28dcab9ee41c3c8d9
|
4
|
+
data.tar.gz: f6ae85f63436e637984525ebfa974d67c146e614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]
|
180
|
-
|
181
|
-
|
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.
|
data/sensu-settings.gemspec
CHANGED
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.
|
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-
|
11
|
+
date: 2017-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-json
|