summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-01-29 15:01:23 -0800
committerTim Smith <tsmith84@gmail.com>2020-01-29 15:01:23 -0800
commit4a185dfe5447949e5e41502ea5c0dad281d7ccc7 (patch)
tree50ebd94ff3c28025c317b0aefa45d261b21ecf9c
parenta4ad6b43736221f2cbcf8a5b58285cc492446d16 (diff)
parent61a261665e5269b15624671b5a80abdb96c54e86 (diff)
downloadohai-4a185dfe5447949e5e41502ea5c0dad281d7ccc7.tar.gz
Merge branch 'fix/ensure_optional_plugins_to_be_symbols' of https://github.com/salzig/ohai into salzig-fix/ensure_optional_plugins_to_be_symbols
-rw-r--r--lib/ohai/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/config.rb b/lib/ohai/config.rb
index 66790d98..ea5eaff6 100644
--- a/lib/ohai/config.rb
+++ b/lib/ohai/config.rb
@@ -39,7 +39,7 @@ module Ohai
# causes all optional plugins to be run.
default :run_all_plugins, false
# optional plugins are the set of plugins that are marked optional but you wish to run.
- default :optional_plugins, []
+ default(:optional_plugins, []).writes_value { |arr| arr.map(&:to_sym) }
default :shellout_timeout, 30
end
end