Method: Chef::ChefFS::DataHandler::NodeDataHandler#normalize
- Defined in:
- lib/chef/chef_fs/data_handler/node_data_handler.rb
#normalize(node, entry) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/chef/chef_fs/data_handler/node_data_handler.rb', line 8 def normalize(node, entry) result = normalize_hash(node, { "name" => remove_dot_json(entry.name), "json_class" => "Chef::Node", "chef_type" => "node", "chef_environment" => "_default", "override" => {}, "normal" => {}, "default" => {}, "automatic" => {}, "run_list" => [], }) result["run_list"] = normalize_run_list(result["run_list"]) result end |