lib/chef-dk/configurable.rb in chef-dk-4.1.7 vs lib/chef-dk/configurable.rb in chef-dk-4.2.0
- old
+ new
@@ -47,10 +47,11 @@
module ChefDK
module Configurable
def chef_config
return @chef_config if @chef_config
+
config_loader.load
@chef_config = Chef::Config
CookbookOmnifetch.integration.default_chef_server_http_client = default_chef_server_http_client
@chef_config
end
@@ -77,11 +78,11 @@
end
def default_chef_server_http_client
lambda do
ChefServerAPIMulti.new(@chef_config.chef_server_url,
- signing_key_filename: @chef_config.client_key,
- client_name: @chef_config.node_name)
+ signing_key_filename: @chef_config.client_key,
+ client_name: @chef_config.node_name)
end
end
end
end