summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorThomas Gordon <nrgetik@users.noreply.github.com>2018-04-27 16:31:03 -0400
committerThomas Gordon <nrgetik@users.noreply.github.com>2018-04-27 16:31:03 -0400
commitd5100aaad308401f77586cbffebded2b8edab595 (patch)
tree15f56482870be75e79d48be243dbcb49b2d01566 /lib/chef
parentebdd1475af631339927c92d15c6e2000d0db07d5 (diff)
downloadchef-d5100aaad308401f77586cbffebded2b8edab595.tar.gz
Default gem_package.clear_sources to Chef::Config[:clear_gem_sources]
Signed-off-by: Thomas Gordon <nrgetik@users.noreply.github.com>
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/resource/gem_package.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/gem_package.rb b/lib/chef/resource/gem_package.rb
index ee1262cb47..3a60ccf0d8 100644
--- a/lib/chef/resource/gem_package.rb
+++ b/lib/chef/resource/gem_package.rb
@@ -40,7 +40,7 @@ class Chef
# FIXME? the array form of installing paths most likely does not work?
#
property :source, [ String, Array ]
- property :clear_sources, [ TrueClass, FalseClass ], default: false, desired_state: false
+ property :clear_sources, [ TrueClass, FalseClass ], default: lazy {Chef::Config[:clear_gem_sources]}, desired_state: false
# Sets a custom gem_binary to run for gem commands.
property :gem_binary, String, desired_state: false