Browse Source

fix chef_environment to be used as attribute in django recipe (from https://github.com/ches/cookbooks/commit/520717cbc609891cae563ce419ff2041e3ff99fb)

Joseph Anthony Pasquale Holsten 12 years ago
parent
commit
fbbb4fa27c
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
 #
@@ -155,7 +155,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")