Fix go-client api break (#2419)

This commit is contained in:
Guillaume Bouvignies
2023-10-10 08:04:29 -07:00
committed by GitHub
parent 8f68b48f47
commit 45d7844ab4

View File

@@ -56,7 +56,8 @@ func GetResource(path string) (interface{}, error) {
if err != nil {
return nil, err
}
res, err := client.Client.GetResourceValueInterpolatedWithResponse(context.Background(), client.Workspace, path)
params := &api.GetResourceValueInterpolatedParams{}
res, err := client.Client.GetResourceValueInterpolatedWithResponse(context.Background(), client.Workspace, path, &params)
if res.StatusCode()/100 != 2 {
return nil, errors.New(string(res.Body))
}