bug: fixed the result.Operation variable prior to patchRepoVariable being called in the setVariable function.
This commit is contained in:
parent
b07f955c23
commit
a3601a7eca
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue