X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian-org%2Flib%2Ffacter%2Fpaths.rb;h=6b1b3da4dc25899bcb72d52793c954d657e82a1f;hb=810511398d02d8b7ebeafcbe6dcd6cdd86add92e;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..6b1b3da4d 100644 --- a/modules/debian-org/lib/facter/paths.rb +++ b/modules/debian-org/lib/facter/paths.rb @@ -3,11 +3,11 @@ /srv/buildd /etc/ssh/ssh_host_ed25519_key /srv/mirrors/debian - /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