'Return a list of locations (datacenters).
:return: List of NodeLocation objects
:rtype: ``list`` of :class:`NodeLocation`'

def list_locations(self):

    res = self.connection.request('hosting.datacenter.list')
    return [self._to_loc(l) for l in res.object]
