diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2022-03-21 20:01:48 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2022-03-21 20:01:48 -0700 |
commit | 880d332592b61e760fe5c089e5d456426f459ab9 (patch) | |
tree | a041de90d3afe403b0b8ebd59d085f3c016f7505 /chef-config | |
parent | f95a28f028e8f7daa35d2418128addda8febd13d (diff) | |
download | chef-880d332592b61e760fe5c089e5d456426f459ab9.tar.gz |
Fix YAML use
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'chef-config')
-rw-r--r-- | chef-config/lib/chef-config/config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb index 87e0b6bab2..2932fdc82f 100644 --- a/chef-config/lib/chef-config/config.rb +++ b/chef-config/lib/chef-config/config.rb @@ -174,7 +174,7 @@ module ChefConfig # Call to_sym because Chef::Config expects only symbol keys. Also # runs a simple parse on the string for some common types. - memo[key.to_sym] = YAML.safe_load(value) + memo[key.to_sym] = YAML.safe_load(value, permitted_classes: [Date]) memo end set_extra_config_options(extra_parsed_options) |