diff --git a/lib/puppet/provider/gpg_key/rpm.rb b/lib/puppet/provider/gpg_key/rpm.rb index aaeaa20..4cca540 100644 --- a/lib/puppet/provider/gpg_key/rpm.rb +++ b/lib/puppet/provider/gpg_key/rpm.rb @@ -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"