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