From: Stephen Gran Date: Sat, 14 Mar 2009 21:22:18 +0000 (+0000) Subject: Don't blow up if module load fails X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=6c0e762ea3621bcb1b3ac4173b06b3e0bb5b6a11;p=dsa-puppet.git Don't blow up if module load fails Signed-off-by: Stephen Gran --- diff --git a/facts/mounts.rb b/facts/mounts.rb index c1c6aaba..b6494bf2 100644 --- a/facts/mounts.rb +++ b/facts/mounts.rb @@ -1,4 +1,8 @@ -require 'filesystem' +begin + require 'filesystem' +rescue Exception => e + exit 0 +end Facter.add("mounts") do ignorefs = ["NFS", "nfs", "nfs4", "afs", "binfmt_misc", "proc", "smbfs",