facts/scripts/get_facts.rb in simp-rspec-puppet-facts-1.4.1 vs facts/scripts/get_facts.rb in simp-rspec-puppet-facts-2.0.0
- old
+ new
@@ -1,9 +1,9 @@
require 'puppet'
require 'json'
require 'facter'
-ENV['FACTERLIB'].split(':').each{|x| Facter.search x }
+ENV.fetch('FACTERLIB').split(':').each{|x| Facter.search x }
Puppet.initialize_settings
Facter.loadfacts
jj JSON.parse Facter.collection.to_hash.to_json