summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/application/solo.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/application/solo.rb b/lib/chef/application/solo.rb
index 6140b9e589..a55882bef1 100644
--- a/lib/chef/application/solo.rb
+++ b/lib/chef/application/solo.rb
@@ -200,6 +200,8 @@ class Chef::Application::Solo < Chef::Application
Chef::Mixin::Command.run_command(:command => "tar zxvf #{path} -C #{recipes_path}")
end
+ # json_attribs shuld be fetched after recipe_url tarball is unpacked.
+ # Otherwise it may fail if points to local file from tarball.
if Chef::Config[:json_attribs]
config_fetcher = Chef::ConfigFetcher.new(Chef::Config[:json_attribs])
@chef_client_json = config_fetcher.fetch_json