'Creates self._datacenter_cache, containing all Datacenters indexed by ID.'

def populate_datacenter_cache(self):

    self._datacenter_cache = {}
    dcs = Datacenter.search()
    for dc in dcs:
        self._datacenter_cache[dc.api_id] = dc
