X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=lib%2Ffacter%2Fapt_reboot_required.rb;h=1e1650a77c06d1581056f035f7564e7c9d62c703;hb=f610bedc5f33db5fdee2ad49eeda95268ab0b9a5;hp=8de904af2c5e2017f018c609546670104f1b109a;hpb=fe9741fe1d3c7a863314c8e2d9700e9169b22537;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/lib/facter/apt_reboot_required.rb b/lib/facter/apt_reboot_required.rb index 8de904a..1e1650a 100644 --- a/lib/facter/apt_reboot_required.rb +++ b/lib/facter/apt_reboot_required.rb @@ -1,6 +1,6 @@ # apt_reboot_required.rb Facter.add(:apt_reboot_required) do - confine :osfamily => 'Debian' + confine osfamily: 'Debian' setcode do File.file?('/var/run/reboot-required') end