From 7bf5b8e2546552fc6bc4916c0cdaacf862f977a1 Mon Sep 17 00:00:00 2001 From: Dominik Tuchyna Date: Tue, 4 May 2021 20:11:35 +0200 Subject: [PATCH] Mi/feature/merge (#1153) * Add merge parameter * Make every parameter optional --- thoth/common/openshift.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/thoth/common/openshift.py b/thoth/common/openshift.py index 2b38518c..c6aefc48 100644 --- a/thoth/common/openshift.py +++ b/thoth/common/openshift.py @@ -1506,10 +1506,11 @@ def schedule_qebhwt_workflow( def schedule_mi_workflow( self, - repository: str, + repository: Optional[str] = None, entities: Optional[str] = None, knowledge_path: Optional[str] = None, - mi_used_for_thoth: bool = False, + mi_used_for_thoth: Optional[bool] = False, + mi_merge: Optional[bool] = False, *, job_id: Optional[str] = None, ) -> Optional[str]: @@ -1526,6 +1527,7 @@ def schedule_mi_workflow( "ENTITIES": entities, "KNOWLEDGE_PATH": knowledge_path, "MI_THOTH": "1" if mi_used_for_thoth else "0", + "MI_MERGE": "1" if mi_merge else "0", } return self._schedule_workflow(