Method: Chef::ChefFS::DataHandler::OrganizationInvitesDataHandler#normalize

Defined in:
lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb

#normalize(invites, entry) ⇒ Object



7
8
9
# File 'lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb', line 7

def normalize(invites, entry)
  invites.map { |invite| invite.is_a?(Hash) ? invite["username"] : invite }.compact.sort.uniq
end