1 diff -ru a/lib/puppet/provider/package/yum.rb b/lib/puppet/provider/package/yum.rb
2 --- a/lib/puppet/provider/package/yum.rb 2020-03-05 20:30:49.582624408 +0800
3 +++ b/lib/puppet/provider/package/yum.rb 2020-03-05 21:13:39.870694454 +0800
7 defaultfor :osfamily => :redhat
8 + defaultfor :operatingsystem => :"poky-stx"
10 def self.prefetch(packages)
11 raise Puppet::Error, _("The yum provider can only be used as root") if Process.euid != 0