riemann-babbler 1.3.9.5 → 1.3.9.6

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.
@@ -56,7 +56,11 @@ module Riemann
56
56
  event[:state] = state(event[:metric]) unless plugin.states.critical.nil?
57
57
  end
58
58
  event[:metric] = event[:metric].round(2) if event[:metric].kind_of? Float
59
- event[:tags] = options.riemann.tags unless options.riemann.tags.nil?
59
+ # set tags
60
+ unless options.riemann.tags.nil?
61
+ event[:tags] = options.riemann.tags if event[:tags].nil?
62
+ end
63
+ # set host
60
64
  event[:host] = hostname unless event[:host].nil?
61
65
  logger.debug "Report status: #{event.inspect}"
62
66
  riemann << event
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  class Babbler
3
- VERSION = '1.3.9.5'
3
+ VERSION = '1.3.9.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-babbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.9.5
4
+ version: 1.3.9.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: