'Get aggregate attributes needed for the storage service catalog.'

def get_aggregate(self, aggregate_name):

    if (not aggregate_name):
        return {}
    desired_attributes = {'aggr-attributes': {'aggregate-name': None, 'aggr-raid-attributes': {'raid-type': None, 'is-hybrid': None}}}
    try:
        aggrs = self._get_aggregates(aggregate_names=[aggregate_name], desired_attributes=desired_attributes)
    except netapp_api.NaApiError as e:
        if (e.code == netapp_api.EAPINOTFOUND):
            LOG.debug('Aggregate    info    can    only    be    collected    with    cluster-scoped    credentials.')
        else:
            LOG.exception('Failed    to    get    info    for    aggregate    %s.', aggregate_name)
        return {}
    if (len(aggrs) < 1):
        return {}
    aggr_attributes = aggrs[0]
    aggr_raid_attrs = (aggr_attributes.get_child_by_name('aggr-raid-attributes') or netapp_api.NaElement('none'))
    aggregate = {'name': aggr_attributes.get_child_content('aggregate-name'), 'raid-type': aggr_raid_attrs.get_child_content('raid-type'), 'is-hybrid': strutils.bool_from_string(aggr_raid_attrs.get_child_content('is-hybrid'))}
    return aggregate
