lib/facter/facterversion.rb in facter-1.6.11 vs lib/facter/facterversion.rb in facter-1.6.12.rc1

- old
+ new

@@ -1,12 +1,15 @@ # Fact: facterversion # # Purpose: returns the version of the facter module. # -# Resolution: Uses the version constant. +# Resolution: Uses the Facter.version method. # # Caveats: # Facter.add(:facterversion) do - setcode { Facter::FACTERVERSION.to_s } + setcode do + require 'facter/version' + Facter.version.to_s + end end