# File lib/chef_zero/data_normalizer.rb, line 117 def self.normalize_role(role, name) role['name'] ||= name role['description'] ||= '' role['json_class'] ||= 'Chef::Role' role['chef_type'] ||= 'role' role['default_attributes'] ||= {} role['override_attributes'] ||= {} role['run_list'] ||= [] role['run_list'] = normalize_run_list(role['run_list']) role['env_run_lists'] ||= {} role['env_run_lists'].each_pair do |env, run_list| role['env_run_lists'][env] = normalize_run_list(run_list) end role end