1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00

fix: error in order of function call UpdateEnvironment (#4201)

Signed-off-by: Engin Diri <engin.diri@ediri.de>
Co-authored-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
This commit is contained in:
Engin Diri 2024-12-13 17:01:39 +01:00 committed by GitHub
parent fa8941a526
commit 325cc52790
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}