Skip to content

Commit

Permalink
Mi/feature/merge (#1153)
Browse files Browse the repository at this point in the history
* Add merge parameter

* Make every parameter optional
  • Loading branch information
xtuchyna authored May 4, 2021
1 parent 1a6d581 commit 7bf5b8e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions thoth/common/openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand All @@ -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(
Expand Down

0 comments on commit 7bf5b8e

Please sign in to comment.