def _service_disco_configs(agentConfig):
 if (agentConfig.get('service_discovery') and (agentConfig.get('service_discovery_backend') in SD_BACKENDS)):
  try:
   log.info('Fetching service discovery check configurations.')
   sd_backend = get_sd_backend(agentConfig=agentConfig)
   service_disco_configs = sd_backend.get_configs()
  except Exception:
   log.exception('Loading service discovery configurations failed.')
   return {}
 else:
  service_disco_configs = {}
 return service_disco_configs

def _service_disco_configs ( agentConfig ) : if ( agentConfig . get ( 'service_discovery' ) and ( agentConfig . get ( 'service_discovery_backend' ) in SD_BACKENDS ) ) : try : log . info ( 'Fetching service discovery check configurations.' ) sd_backend = get_sd_backend ( agentConfig = agentConfig ) service_disco_configs = sd_backend . get_configs ( ) except Exception : log . exception ( 'Loading service discovery configurations failed.' ) return { } else : service_disco_configs = { } return service_disco_configs
retrieve all the service disco configs and return their conf dicts .