

@classmethod
def _validate_host_data(cls, hostname, host_data):
    for key in ['hostname', 'cdn']:
        if (key not in host_data):
            raise BootstrapValidationError(("invalid host data received, missing '%s' key" % key))
    if (hostname != host_data['hostname']):
        raise BootstrapValidationError(('host data mismatch. Expecting data for %s but got data for %s' % (hostname, host_data['hostname'])))
    host_data.setdefault('ssl', False)
    return host_data

dataset/ETHPy150Open CacheBrowser/cachebrowser/cachebrowser/bootstrap.py Bootstrapper._validate_host_data/original