

def ex_get_location_by_id(self, id):
    '\n        Get location by ID.\n\n        :param  id: ID of the node location which should be used\n        :type   id: ``str``\n\n        :rtype: :class:`NodeLocation`\n        '
    location = None
    if (id is not None):
        location = self.list_locations(ex_id=id)[0]
    return location

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_get_location_by_id/original