

def get_record(self, zone_id, record_id):
    "\n        >>> driver = DummyDNSDriver('key', 'secret')\n        >>> driver.get_record(zone_id='doesnotexist', record_id='exists')\n        ... #doctest: +IGNORE_EXCEPTION_DETAIL\n        Traceback (most recent call last):\n        ZoneDoesNotExistError:\n\n        @inherits: :class:`DNSDriver.get_record`\n        "
    self.get_zone(zone_id=zone_id)
    zone_records = self._zones[zone_id]['records']
    if (record_id not in zone_records):
        raise RecordDoesNotExistError(record_id=record_id, value=None, driver=self)
    return zone_records[record_id]

dataset/ETHPy150Open apache/libcloud/libcloud/dns/drivers/dummy.py DummyDNSDriver.get_record/original