diff --git a/pkg/cmd/variable/set/http.go b/pkg/cmd/variable/set/http.go index 9da732e2a17..e3acb5e0a7f 100644 --- a/pkg/cmd/variable/set/http.go +++ b/pkg/cmd/variable/set/http.go @@ -72,7 +72,7 @@ func setVariable(client *api.Client, host string, opts setOptions) setResult { return result } else if errors.As(err, &postErr) && postErr.StatusCode == 409 { // Server will return a 409 if variable already exists - result.Operation = createdOperation + result.Operation = updatedOperation err = patchRepoVariable(client, opts.Repository, opts.Key, opts.Value) } }