From 6c0e762ea3621bcb1b3ac4173b06b3e0bb5b6a11 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sat, 14 Mar 2009 21:22:18 +0000 Subject: [PATCH] Don't blow up if module load fails Signed-off-by: Stephen Gran --- facts/mounts.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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", -- 2.39.2