summaryrefslogtreecommitdiff
path: root/lib/chef/compile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/compile.rb')
-rw-r--r--lib/chef/compile.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/chef/compile.rb b/lib/chef/compile.rb
index 5cd200b098..800d89c6b0 100644
--- a/lib/chef/compile.rb
+++ b/lib/chef/compile.rb
@@ -35,8 +35,11 @@ class Chef
end
def load_node(name)
- Chef::Log.debug("Loading Chef Node #{name}")
- @node = Chef::Node.find(name)
+ Chef::Log.debug("Loading Chef Node #{name} from CouchDB")
+ @node = Chef::Node.load(name)
+ Chef::Log.debug("Loading Recipe for Chef Node #{name}")
+ @node.find_file(name)
+ @node
end
def load_definitions()