diff options
author | Adam Bewsher <adam.bewsher@neos.co.uk> | 2019-03-14 12:52:23 +0000 |
---|---|---|
committer | Adam Bewsher <adam.bewsher@neos.co.uk> | 2019-03-15 10:51:42 +0000 |
commit | 8d9d18672d9f124d5f702474680ee2c25f43ee35 (patch) | |
tree | e5d74cb8010802b9a5d7ac8472121170b49e8a58 /lib | |
parent | e26d943ab7958a88161f3c5959fad29aa8ed8b36 (diff) | |
download | chef-8d9d18672d9f124d5f702474680ee2c25f43ee35.tar.gz |
fix undefined local variable 'recipes_path'
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the
best of my knowledge, is covered under an appropriate open
source license and I have the right under that license to
submit that work with modifications, whether created in whole
or in part by me, under the same open source license (unless
I am permitted to submit under a different license), as
Indicated in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including
all personal information I submit with it, including my
sign-off) is maintained indefinitely and may be redistributed
consistent with this project or the open source license(s)
involved.
Signed-off-by: Adam Bewsher <adam.bewsher@neos.co.uk>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/application/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb index cdeb376f96..789b938213 100644 --- a/lib/chef/application/client.rb +++ b/lib/chef/application/client.rb @@ -332,7 +332,7 @@ class Chef::Application::Client < Chef::Application else if Chef::Config[:delete_entire_chef_repo] Chef::Log.trace "Cleanup path #{Chef::Config.chef_repo_path} before extract recipes into it" - FileUtils.rm_rf(recipes_path, secure: true) + FileUtils.rm_rf(Chef::Config.chef_repo_path, secure: true) end Chef::Log.trace "Creating path #{Chef::Config.chef_repo_path} to extract recipes into" FileUtils.mkdir_p(Chef::Config.chef_repo_path) |