def __init__(self, name, init_config, agentConfig, instances=None): # Now that the DNS check is a Network check, we must provide a `name` for each # instance before calling NetworkCheck to make backwards compatible with old yaml. if instances is not None: for idx, inst in enumerate(instances): try: inst['name'] = inst['name'] except KeyError: inst['name'] = "dns-check-{}".format(idx) NetworkCheck.__init__(self, name, init_config, agentConfig, instances) self.default_timeout = init_config.get('default_timeout', self.DEFAULT_TIMEOUT)
def __init__(self, name, init_config, agentConfig, instances=None): NetworkCheck.__init__(self, name, init_config, agentConfig, instances) self.ca_certs = init_config.get('ca_certs', get_ca_certs_path())