fix go-client with new openapi

This commit is contained in:
Ruben Fiszel
2023-02-21 12:25:54 +01:00
parent 8612d55ca8
commit 10c86c2a26
+2 -1
View File
@@ -91,7 +91,8 @@ func SetVariable(path string, value string) error {
if err != nil {
return err
}
res, err := client.Client.UpdateVariableWithResponse(context.Background(), client.Workspace, path, api.EditVariable{Value: &value})
f := false
res, err := client.Client.UpdateVariableWithResponse(context.Background(), client.Workspace, path, &api.UpdateVariableParams{AlreadyEncrypted: &f}, api.EditVariable{Value: &value})
if err != nil {
return err
}