

def _parse_cdn_entry(self, cdn_data):
    if ('id' not in cdn_data):
        raise BootstrapSourceError((self.ERROR_PREFIX + "Missing key 'id' on cdn item"))
    cdn = {
        'id': cdn_data['id'],
        'name': cdn_data.get('name', ''),
        'edge_servers': cdn_data.get('edge_servers', []),
    }
    self.cdns[cdn['id']] = cdn

dataset/ETHPy150Open CacheBrowser/cachebrowser/cachebrowser/bootstrap.py LocalBootstrapSource._parse_cdn_entry/original