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:
parent
fa8941a526
commit
325cc52790
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue