in cookbooks/aws-parallelcluster-slurm/files/default/config_slurm/scripts/health_check_manager.py [0:0]
def _get_config(self, config_file_path: str):
"""Get health check manager configuration."""
log.info("Reading '%s'", config_file_path)
self._config = ConfigParser()
try:
self._config.read_file(StringIO(_read_file(config_file_path)))
except Exception as err:
if hasattr(err, "message"):
err = err.message
log.error(
"Cannot read Health Check Manager config file: %s, falling back to default settings. Error is: %s",
config_file_path,
err,
)
self.health_check_timeout = self._config.getint(
"health_check_manager", "health_check_timeout", fallback=self.DEFAULTS.get("health_check_timeout")
)
self.logging_config = self._config.get(
"health_check_manager", "logging_config", fallback=self.DEFAULTS.get("logging_config")
)
self.managed_health_check_dir = self._config.get(
"health_check_manager", "managed_health_check_dir", fallback=self.DEFAULTS.get("managed_health_check_dir")
)
log.debug(repr(self))