Skip to content

Commit

Permalink
Support Facter 2 and above
Browse files Browse the repository at this point in the history
As of Facter 2.0, fact values can only be accessed via the
Facter.value method
  • Loading branch information
juniorsysadmin committed Jul 5, 2015
1 parent f33694a commit 1b16f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/gpg_key/rpm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

optional_commands :rpm => "rpm"

if Facter.fact('operatingsystem').value =~ /Fedora/
if Facter.value(:operatingsystem) =~ /Fedora/
optional_commands :gpg => "gpg2"
else
optional_commands :gpg => "gpg"
Expand Down

0 comments on commit 1b16f2c

Please sign in to comment.