Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
[COOK-2147] Use the correct directory path when searching for require…
Browse files Browse the repository at this point in the history
…ment files
  • Loading branch information
Cameron Johnston committed Jan 1, 2013
1 parent b738476 commit 9544868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/django.rb
Expand Up @@ -46,8 +46,8 @@
if new_resource.requirements.nil?
# look for requirements.txt files in common locations
[
::File.join(new_resource.path, "requirements", "#{node.chef_environment}.txt"),
::File.join(new_resource.path, "requirements.txt")
::File.join(new_resource.release_path, "requirements", "#{node.chef_environment}.txt"),
::File.join(new_resource.release_path, "requirements.txt")
].each do |path|
if ::File.exists?(path)
new_resource.requirements path
Expand Down

0 comments on commit 9544868

Please sign in to comment.