summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-02-28 09:45:55 -0800
committerGitHub <noreply@github.com>2020-02-28 09:45:55 -0800
commitb97801993a5899618fd63eee4382db6c9fb82985 (patch)
tree395f59e6b8d157ba3560bdf9cc246b2e8b3cc997
parent66ed20f0e6466f5572732b5028cbe64a91bbb15c (diff)
parent084425b5d01bbb6c51e0be85ca446d960ed15a4d (diff)
downloadohai-b97801993a5899618fd63eee4382db6c9fb82985.tar.gz
Merge pull request #1436 from chef/config_fix_15
fix: ensure optional_plugins to be array of 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