From 33bc28fa855e4734391f3dbe6e7d524968ee4da4 Mon Sep 17 00:00:00 2001 From: Fabiano Soares Honorato Date: Thu, 12 Jan 2023 19:06:35 -0300 Subject: [PATCH] Fix instrumented approve policies calling apply (#2977) --- server/events/instrumented_project_command_runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/events/instrumented_project_command_runner.go b/server/events/instrumented_project_command_runner.go index f7e2132306..38ae8c204f 100644 --- a/server/events/instrumented_project_command_runner.go +++ b/server/events/instrumented_project_command_runner.go @@ -46,7 +46,7 @@ func (p *InstrumentedProjectCommandRunner) Apply(ctx command.ProjectContext) com } func (p *InstrumentedProjectCommandRunner) ApprovePolicies(ctx command.ProjectContext) command.ProjectResult { - return RunAndEmitStats("approve policies", ctx, p.projectCommandRunner.Apply, p.scope) + return RunAndEmitStats("approve policies", ctx, p.projectCommandRunner.ApprovePolicies, p.scope) } func (p *InstrumentedProjectCommandRunner) Import(ctx command.ProjectContext) command.ProjectResult {