'List available locations.
In vSphere case, a location represents a datacenter.'

@wrap_non_libcloud_exceptions
def list_locations(self):

    datacenters = self.connection.client.get_datacenters()
    locations = []
    for (id, name) in datacenters.items():
        location = NodeLocation(id=id, name=name, country=None, driver=self)
        locations.append(location)
    return locations
