diff --git a/releases/unreleased/missing-parameters-for-sortinghat.yml b/releases/unreleased/missing-parameters-for-sortinghat.yml new file mode 100644 index 00000000..14f574bd --- /dev/null +++ b/releases/unreleased/missing-parameters-for-sortinghat.yml @@ -0,0 +1,8 @@ +--- +title: Missing database parameters for SortingHat +category: fixed +author: null +issue: null +notes: > + SortingHat database parameters were not included during the initialization of + the enrich backend. diff --git a/sirmordred/task.py b/sirmordred/task.py index 9522884a..884a74e9 100644 --- a/sirmordred/task.py +++ b/sirmordred/task.py @@ -188,7 +188,9 @@ def _get_enrich_backend(self): json_projects_map = self.conf['projects']['projects_file'] enrich_backend = connector[2](self.db_sh, json_projects_map, - self.db_user, self.db_password, self.db_host) + self.db_user, self.db_password, self.db_host, + self.db_path, self.db_port, self.db_ssl, self.db_verify_ssl, + self.db_tenant) elastic_enrich = get_elastic(self.conf['es_enrichment']['url'], self.conf[self.backend_section]['enriched_index'], clean, enrich_backend) diff --git a/sirmordred/task_enrich.py b/sirmordred/task_enrich.py index ea510781..ecb2aaa1 100644 --- a/sirmordred/task_enrich.py +++ b/sirmordred/task_enrich.py @@ -440,7 +440,6 @@ def execute(self): if autorefresh and self.db: logger.info('[%s] autorefresh start', self.backend_section) - a = self._get_enrich_backend() self.__autorefresh(self._get_enrich_backend()) logger.info('[%s] autorefresh end', self.backend_section) else: