Class: Chef::Provider::ChefOrganization::OrganizationDataHandler

Inherits:
ChefFS::DataHandler::DataHandlerBase
  • Object
show all
Defined in:
lib/chef/provider/chef_organization.rb

Instance Method Summary collapse

Instance Method Details

#normalize(organization, entry) ⇒ Object



139
140
141
142
143
144
145
146
147
148
# File 'lib/chef/provider/chef_organization.rb', line 139

def normalize(organization, entry)
  # Normalize the order of the keys for easier reading
  normalize_hash(organization, {
    'name' => remove_dot_json(entry.name),
    'full_name' => remove_dot_json(entry.name),
    'org_type' => 'Business',
    'clientname' => "#{remove_dot_json(entry.name)}-validator",
    'billing_plan' => 'platform-free'
  })
end