def mk_profile_hash(data, cv_id)
hcollections = split_multival(data['system_group_id']).collect do |sg_id|
get_translated_id(:host_collections, sg_id)
end
{
:name => data['profile_name'],
:description => "#{data['description']}\nsat5_system_id: #{data['server_id']}",
:facts => {'release' => data['release'], 'architecture' => data['architecture']},
:type => 'system',
:organization_id => get_translated_id(:organizations, data['organization_id'].to_i),
:content_view_id => cv_id,
:host_collection_ids => hcollections
}
end