summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/facter/facter_dot_d.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/facter/facter_dot_d.rb b/lib/facter/facter_dot_d.rb
index 90586a9..2658dfe 100644
--- a/lib/facter/facter_dot_d.rb
+++ b/lib/facter/facter_dot_d.rb
@@ -54,8 +54,8 @@ class Facter::Util::DotD
begin
require 'json'
rescue LoadError
- require 'rubygems'
- retry
+ retry if require 'rubygems'
+ raise
end
JSON.load(File.read(file)).each_pair do |f, v|