From fa7955c1b311cddb9436621d107d11735ee15cb4 Mon Sep 17 00:00:00 2001 From: David Townley Date: Wed, 20 Sep 2023 17:51:58 -0400 Subject: [PATCH] fix input to GetBuildEnv --- cli/cmd/v2/apply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cmd/v2/apply.go b/cli/cmd/v2/apply.go index 7c4bec4929..27dd910bb4 100644 --- a/cli/cmd/v2/apply.go +++ b/cli/cmd/v2/apply.go @@ -173,7 +173,7 @@ func Apply(ctx context.Context, cliConf config.CLIConfig, client api.Client, por buildSettings.CurrentImageTag = currentImageTag buildSettings.ProjectID = cliConf.Project - buildEnv, err := client.GetBuildEnv(ctx, cliConf.Project, cliConf.Cluster, appName, targetResp.DeploymentTargetID) + buildEnv, err := client.GetBuildEnv(ctx, cliConf.Project, cliConf.Cluster, appName, appRevision.ID) if err != nil { return fmt.Errorf("error getting build env: %w", err) }