Skip to content

Commit

Permalink
Merge pull request #2007 from IrimieBogdan/FACT-2699-2-revert
Browse files Browse the repository at this point in the history
(FACT-2699) Revert "(FACT-2699) Catch augeas exception in resolver."
  • Loading branch information
Bogdan Irimie authored Jul 31, 2020
2 parents 57ab0cd + a95c5c1 commit fe1fb4e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions lib/facter/resolvers/augeas_resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ def read_augeas_from_gem
# it is used for legacy augeas <= 0.5.0 (ruby-augeas gem)
::Augeas.open { |aug| aug.get('/augeas/version') }
end
rescue LoadError
log.debug('augeas is not available')
nil
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/facter/resolvers/augeas_resolver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
it 'raises a LoadError error' do
augeas.resolve(:augeas_version)

expect(log_spy).to have_received(:debug).with('augeas is not available')
expect(log_spy).to have_received(:debug).with('resolving fact augeas_version, but load_error_message')
end
end
end
Expand Down

0 comments on commit fe1fb4e

Please sign in to comment.