diff options
Diffstat (limited to 'lib/ohai/runner.rb')
-rw-r--r-- | lib/ohai/runner.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ohai/runner.rb b/lib/ohai/runner.rb index ba3985dc..6f623d38 100644 --- a/lib/ohai/runner.rb +++ b/lib/ohai/runner.rb @@ -59,6 +59,10 @@ module Ohai end def run_v7_plugin(plugin) + return true if plugin.optional? && + !Ohai.config[:run_all_plugins] && + !Ohai.config[:optional_plugins].include?(plugin.name) + visited = [ plugin ] until visited.empty? next_plugin = visited.pop |