Method: Chef::Node#consume_attributes

Defined in:
lib/chef/node.rb

#consume_attributes(attrs) ⇒ Object

Consumes the combined run_list and other attributes in attrs



389
390
391
392
393
394
395
396
# File 'lib/chef/node.rb', line 389

def consume_attributes(attrs)
  normal_attrs_to_merge = consume_run_list(attrs)
  normal_attrs_to_merge = consume_chef_environment(normal_attrs_to_merge)
  # FIXME(log): should be trace
  logger.debug("Applying attributes from json file")
  self.normal_attrs = Chef::Mixin::DeepMerge.merge(normal_attrs, normal_attrs_to_merge)
  tags # make sure they're defined
end