lib/onering/util.rb in onering-client-0.3.0 vs lib/onering/util.rb in onering-client-0.3.1

- old
+ new

@@ -93,19 +93,10 @@ if defined?(Facter) if name.downcase == 'all' return Facter.to_hash() else - case name.to_sym - when :hardwareid - if File.exists?('/etc/hardware.id') - fact = File.read('/etc/hardware.id').lines.first.strip.chomp - else - fact = Facter.value(name) - end - else - fact = Facter.value(name) - end + fact = Facter.value(name) # short circuit nil responses if fact.nil? return reporter.report().get(name, default) end \ No newline at end of file