onering-client 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/onering.rb +1 -1
  2. data/lib/onering/util.rb +1 -3
  3. metadata +1 -1
data/lib/onering.rb CHANGED
@@ -2,7 +2,7 @@ $: << File.expand_path(File.dirname(__FILE__))
2
2
 
3
3
  module Onering
4
4
  module Client
5
- VERSION = "0.3.2"
5
+ VERSION = "0.3.3"
6
6
 
7
7
  class Error < Exception; end
8
8
  class FatalError < Error; end
data/lib/onering/util.rb CHANGED
@@ -98,9 +98,7 @@ module Onering
98
98
  fact_value = Facter.value(name)
99
99
 
100
100
  # short circuit nil responses
101
- if fact_value.nil?
102
- return reporter.report().get(name, default)
103
- end
101
+ return default if fact_value.nil?
104
102
 
105
103
  # if we are asking for a nested object...
106
104
  if name.include?('.')
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: onering-client
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.2
5
+ version: 0.3.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Gary Hetzel