'Updates internal HostManager information about aggregates.'

def update_aggregates(self, aggregates):

    if isinstance(aggregates, (list, objects.AggregateList)):
        for agg in aggregates:
            self._update_aggregate(agg)
    else:
        self._update_aggregate(aggregates)
