bug: fixed the result.Operation variable prior to patchRepoVariable being called in the setVariable function.

This commit is contained in:
Dean Tate 2024-02-18 11:12:01 +11:00
parent b07f955c23
commit a3601a7eca

View file

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