lib/onering/util.rb in onering-client-0.3.2 vs lib/onering/util.rb in onering-client-0.3.3

- old
+ new

@@ -96,12 +96,10 @@ return Facter.to_hash() else fact_value = Facter.value(name) # short circuit nil responses - if fact_value.nil? - return reporter.report().get(name, default) - end + return default if fact_value.nil? # if we are asking for a nested object... if name.include?('.') # ...and the response IS an object... if fact_value.is_a?(Hash) \ No newline at end of file