diff --git a/lib/puppet/provider/selinux_fcontext/semanage.rb b/lib/puppet/provider/selinux_fcontext/semanage.rb index 72feb4f6..74602f30 100644 --- a/lib/puppet/provider/selinux_fcontext/semanage.rb +++ b/lib/puppet/provider/selinux_fcontext/semanage.rb @@ -9,10 +9,11 @@ mk_resource_methods - osfamily = Facter.value('osfamily') - osversion = Facter.value('operatingsystemmajrelease') + osfamily = Facter.value('osfamily') + osversion = Facter.value('operatingsystemmajrelease') + operatingsystem = Facter.value('operatingsystem') @old_semanage = false - if (osfamily == 'RedHat') && (Puppet::Util::Package.versioncmp(osversion, '6') <= 0) + if (osfamily == 'RedHat') && (Puppet::Util::Package.versioncmp(osversion, '6') <= 0) && (operatingsystem != 'Amazon') @old_semanage = true end