riemann-babbler 0.8.1 → 0.8.2

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.
@@ -68,7 +68,11 @@ module Riemann
68
68
  end
69
69
 
70
70
  def get_hostname
71
- hostname = options.riemann.use_fqdn.nil? ? File.read('/proc/sys/kernel/hostname').strip.downcase : Socket.gethostbyname(Socket.gethostname).first
71
+ if options.riemann.use_fqdn.nil? || options.riemann.use_fqdn == false
72
+ hostname = File.read('/proc/sys/kernel/hostname').strip.downcase
73
+ else
74
+ hostname = Socket.gethostbyname(Socket.gethostname).first
75
+ end
72
76
  if options.riemann.installation.nil?
73
77
  hostname += options.riemann.suffix unless options.riemann.suffix.nil?
74
78
  else
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  class Babbler
3
- VERSION = '0.8.1'
3
+ VERSION = '0.8.2'
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: 0.8.1
4
+ version: 0.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  segments:
167
167
  - 0
168
- hash: 2248343837575612410
168
+ hash: -3815527080714906620
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  none: false
171
171
  requirements: