summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Gilman <evan@pagerduty.com>2015-09-02 12:44:59 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-10-24 18:40:09 -0700
commit3bdfa8f65cf19563e35d2bad3f7fcf9263ac7881 (patch)
treebdbb2e0503a3bbebb3e3dab6bb2f182ad70183ea /lib
parentcb7712e8b0fa27b161db5d9437514d1aefa481c7 (diff)
downloadchef-3bdfa8f65cf19563e35d2bad3f7fcf9263ac7881.tar.gz
Consider only knife configuration for chef environment in bootstrap context
Setting these values in Chef::Config is being deprecated in favor of using the knife config directly. https://github.com/chef/chef/issues/3946
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/knife/core/bootstrap_context.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/core/bootstrap_context.rb b/lib/chef/knife/core/bootstrap_context.rb
index d210b9418f..8613a50cb4 100644
--- a/lib/chef/knife/core/bootstrap_context.rb
+++ b/lib/chef/knife/core/bootstrap_context.rb
@@ -40,7 +40,7 @@ class Chef
end
def bootstrap_environment
- @chef_config[:environment]
+ @config[:environment]
end
def validation_key