소스 검색

There isn't a default value for unicorn stuffs yet so do it the silly way.

Noah Kantrowitz 12 년 전
부모
커밋
9280ea9fed
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      resources/unicorn.rb

+ 1 - 1
resources/unicorn.rb

@@ -20,5 +20,5 @@
 
 
 include Chef::Resource::ApplicationBase
 include Chef::Resource::ApplicationBase
 
 
-attribute :worker_timeout, :kind_of => Integer, :default => node[:unicorn][:worker_timeout] || 60
+attribute :worker_timeout, :kind_of => Integer, :default => node.fetch(:unicorn, {})[:worker_timeout] || 60
 attribute :port, :kind_of => Integer, :default => 8080
 attribute :port, :kind_of => Integer, :default => 8080