sensu-transport-snssqs 2.0.3 → 2.0.4

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: 55baf4237f5da4fa0103b15c0291e7293f796473
4
- data.tar.gz: 411e4e736543ace40cde42e1c3d24be69fe8ba14
3
+ metadata.gz: 7f694a7f02192a9f8f6e1ab2ae1ceb430bdc4008
4
+ data.tar.gz: 1d85c416d74559a4d6cb10d913b9454a85205f96
5
5
  SHA512:
6
- metadata.gz: 35247dc79877cb875c23a3d4dc3a52b13bb213d545ca0d35f009062228f196ca3f705318845b20921b3c6dfdd0be0f31dd666bfe2e28d537bd63d789171705a9
7
- data.tar.gz: d76c4da5c41dfd60a154fb46ef4febe7c328e52c010549693216e1032c21ace8d585c264a609a2afa33225d69f5e90a84d2a046a3053a2b41c781eeeeb2f3d28
6
+ metadata.gz: 08e3ad23376b57fe99cc2ffdd4c2fbd7b2f9f604d9cfe1c6206e8d4a786ae59a6ca2a5fbe34315cc230268b13b354c53138200f76daccd412253386de27eee5b
7
+ data.tar.gz: c22cea4d0055c1872e15ac52dbc8e7158319462c12bf38dec9455163bef7a57b1baf2d27f84582b74421f418db436690ba8f509d1192f4c9989cbd57dd494d50
@@ -65,6 +65,10 @@ module Sensu
65
65
 
66
66
  # subscribe will begin "subscribing" to the consuming sqs queue.
67
67
  #
68
+ # This method is intended for use by the Sensu server; fanout
69
+ # subscriptions initiated by the Sensu client process are
70
+ # treated as a no-op.
71
+ #
68
72
  # What this really means is that we will start polling for
69
73
  # messages from the SQS queue, and, depending on the message
70
74
  # type, it will call the appropriate callback.
@@ -77,6 +81,11 @@ module Sensu
77
81
  #
78
82
  # "funnel" and "type" parameters are completely ignored.
79
83
  def subscribe(type, pipe, funnel = nil, options = {}, &callback)
84
+ if type == :fanout
85
+ self.logger.debug("skipping unsupported fanout subscription type=#{type}, pipe=#{pipe}, funnel=#{funnel}")
86
+ return
87
+ end
88
+
80
89
  self.logger.info("subscribing to type=#{type}, pipe=#{pipe}, funnel=#{funnel}")
81
90
 
82
91
  if pipe == KEEPALIVES_STR
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-transport-snssqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Wanielista