diff --git a/lib/facter/yum_reboot_required.rb b/lib/facter/yum_reboot_required.rb index 198f99d3..724d8f01 100644 --- a/lib/facter/yum_reboot_required.rb +++ b/lib/facter/yum_reboot_required.rb @@ -3,7 +3,7 @@ require 'English' Facter.add(:yum_reboot_required) do - confine osfamily: 'RedHat' + confine 'os.family': 'RedHat' setcode do if File.exist?('/usr/bin/needs-restarting') Facter::Core::Execution.execute('/usr/bin/needs-restarting --reboothint') diff --git a/lib/facter/yum_updates.rb b/lib/facter/yum_updates.rb index 565f3329..9b12257e 100644 --- a/lib/facter/yum_updates.rb +++ b/lib/facter/yum_updates.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true Facter.add('yum_package_updates') do - confine osfamily: 'RedHat' + confine 'os.family': 'RedHat' setcode do yum_updates = [] @@ -18,14 +18,14 @@ end Facter.add('yum_has_updates') do - confine osfamily: 'RedHat' + confine 'os.family': 'RedHat' setcode do Facter.value(:yum_package_updates).any? end end Facter.add('yum_updates') do - confine osfamily: 'RedHat' + confine 'os.family': 'RedHat' setcode do Facter.value(:yum_package_updates).length end