From 325cc52790aa10312c6a8ed701d9e2f7d7cabee9 Mon Sep 17 00:00:00 2001 From: Engin Diri Date: Fri, 13 Dec 2024 17:01:39 +0100 Subject: [PATCH] fix: error in order of function call UpdateEnvironment (#4201) Signed-off-by: Engin Diri Co-authored-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com> --- pkg/provider/pulumi/pulumi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provider/pulumi/pulumi.go b/pkg/provider/pulumi/pulumi.go index d69b9df39..15d9a3e70 100644 --- a/pkg/provider/pulumi/pulumi.go +++ b/pkg/provider/pulumi/pulumi.go @@ -105,7 +105,7 @@ func (c *client) PushSecret(_ context.Context, secret *corev1.Secret, data esv1b if err := mergo.Merge(&updatePayload.Values.AdditionalProperties, oldValues); err != nil { return fmt.Errorf(errPushSecrets, err) } - _, err = c.escClient.UpdateEnvironment(c.authCtx, c.organization, c.environment, c.project, updatePayload) + _, err = c.escClient.UpdateEnvironment(c.authCtx, c.organization, c.project, c.environment, updatePayload) if err != nil { return fmt.Errorf(errPushSecrets, err) }