Method: Chef::Node#consume_external_attrs

Defined in:
lib/chef/node.rb

#consume_external_attrs(ohai_data, json_cli_attrs) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Handles both the consumption of ohai data and possibly JSON attributes from the CLI



357
358
359
360
361
362
363
364
# File 'lib/chef/node.rb', line 357

def consume_external_attrs(ohai_data, json_cli_attrs)
  # FIXME(log): should be trace
  logger.debug("Extracting run list from JSON attributes provided on command line")
  consume_attributes(json_cli_attrs)

  self.automatic_attrs = ohai_data
  fix_automatic_attributes
end