From: Peter Palfrader Date: Mon, 21 Dec 2015 19:25:55 +0000 (+0100) Subject: also replace dashes X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9988b498c0f3b68455da05037f36001685e83bd9;p=mirror%2Fdsa-puppet.git also replace dashes --- diff --git a/modules/debian-org/lib/facter/paths.rb b/modules/debian-org/lib/facter/paths.rb index 2394aa6c4..3fe23c4c6 100644 --- a/modules/debian-org/lib/facter/paths.rb +++ b/modules/debian-org/lib/facter/paths.rb @@ -7,7 +7,7 @@ /srv/mirrors/debian-debug /srv/mirrors/debian-security }.each do |path| - Facter.add("has" + path.gsub('/','_')) do + Facter.add("has" + path.gsub(/[\/-]/,'_')) do setcode do if FileTest.exist?(path) true