Skip to content

Commit adb595e

Browse files
evamillansduenas
authored andcommitted
[datasources/api] Pass backend args when creating a repo
Passes the `backend_args` data to create a task when a repository is created with the `/projects/<project_name>/repos/` API endpoint. Signed-off-by: Eva Millán <[email protected]>
1 parent 5e85f48 commit adb595e

File tree

1 file changed

+4
-0
lines changed
  • src/grimoirelab/core/datasources

1 file changed

+4
-0
lines changed

src/grimoirelab/core/datasources/api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,10 @@ def create(self, request, *args, **kwargs):
332332
job_max_retries = request.data["scheduler"].get("job_max_retries", job_max_retries)
333333

334334
task_args = {"uri": request.data["uri"]}
335+
336+
if "backend_args" in request.data:
337+
task_args = request.data["backend_args"]
338+
335339
task = schedule_task(
336340
"eventizer",
337341
task_args,

0 commit comments

Comments
 (0)