From c2b692d4f2fd1893897b3269279a49bbde953cf7 Mon Sep 17 00:00:00 2001 From: Fitz Date: Tue, 16 Apr 2024 13:15:00 +0100 Subject: [PATCH] fix project pull webhook args --- pkg/controller/webhooks.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/webhooks.go b/pkg/controller/webhooks.go index 2c63ab12..9c9da20c 100644 --- a/pkg/controller/webhooks.go +++ b/pkg/controller/webhooks.go @@ -170,7 +170,7 @@ func (c *Controller) triggerRefMetricsPull(ctx context.Context, ref schemas.Ref) } if matches { - c.ScheduleTask(context.TODO(), schemas.TaskTypePullProject, ref.Project.Name) + c.ScheduleTask(context.TODO(), schemas.TaskTypePullProject, ref.Project.Name, ref.Project.Name) log.WithFields(logFields).Info("project ref not currently exported but its configuration matches a wildcard, triggering a pull of the project") } else { log.WithFields(logFields).Debug("project ref not matching wildcard, skipping..") @@ -284,7 +284,7 @@ func (c *Controller) triggerEnvironmentMetricsPull(ctx context.Context, env sche } if matches { - c.ScheduleTask(context.TODO(), schemas.TaskTypePullProject, env.ProjectName) + c.ScheduleTask(context.TODO(), schemas.TaskTypePullProject, env.ProjectName, env.ProjectName) log.WithFields(logFields).Info("project environment not currently exported but its configuration matches a wildcard, triggering a pull of the project") } else { log.WithFields(logFields).Debug("project ref not matching wildcard, skipping..")