X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian-org%2Flib%2Ffacter%2Fpaths.rb;h=a330c30136f41533c4e0cd9e373e834ea1715685;hb=94eb0fe06f5deafe086b3f6f18bfd5aab2a6e069;hp=2394aa6c4ab0b8571ade14da1e03efc40ae298d9;hpb=b2dda249b749f92ac561fe6c15d858b4a39439dc;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian-org/lib/facter/paths.rb b/modules/debian-org/lib/facter/paths.rb index 2394aa6c4..a330c3013 100644 --- a/modules/debian-org/lib/facter/paths.rb +++ b/modules/debian-org/lib/facter/paths.rb @@ -6,8 +6,9 @@ /srv/mirrors/debian-backports /srv/mirrors/debian-debug /srv/mirrors/debian-security + /dev/hwrng }.each do |path| - Facter.add("has" + path.gsub('/','_')) do + Facter.add("has" + path.gsub(/[\/-]/,'_')) do setcode do if FileTest.exist?(path) true