Fix go-client api break (#2419)
This commit is contained in:
committed by
GitHub
parent
8f68b48f47
commit
45d7844ab4
@@ -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, ¶ms)
|
||||
if res.StatusCode()/100 != 2 {
|
||||
return nil, errors.New(string(res.Body))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user