Skip to content

Commit

Permalink
Merge b14ab6b into 8da1f29
Browse files Browse the repository at this point in the history
  • Loading branch information
jjmerchante committed Oct 10, 2023
2 parents 8da1f29 + b14ab6b commit bb22b25
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions releases/unreleased/missing-parameters-for-sortinghat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Missing parameters for SortingHat
category: fixed
author: null
issue: null
notes: >
Include missing SortingHat parameters during the initialization of
the enrich backend.
4 changes: 3 additions & 1 deletion sirmordred/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion sirmordred/task_enrich.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bb22b25

Please sign in to comment.