Browse Source

Merge pull request #1 from josephholsten/patch-1

COOK-786: fix chef_environment to be used as attribute in django recipe
Joshua Timberman 12 years ago
parent
commit
012bec1c98
1 changed files with 2 additions and 2 deletions
  1. 2 2
      recipes/django.rb

+ 2 - 2
recipes/django.rb

@@ -1,4 +1,4 @@
-#
+ #
 # Cookbook Name:: application
 # Recipe:: django
 #
@@ -157,7 +157,7 @@ deploy_revision app['id'] do
   before_migrate do
     requirements_file = nil
     # look for requirements.txt files in common locations
-    if ::File.exists?(::File.join(release_path, "requirements", "#{node[:chef_environment]}.txt"))
+    if ::File.exists?(::File.join(release_path, "requirements", "#{node.chef_environment}.txt"))
       requirements_file = ::File.join(release_path, "requirements", "#{node.chef_environment}.txt")
     elsif ::File.exists?(::File.join(release_path, "requirements.txt"))
       requirements_file = ::File.join(release_path, "requirements.txt")