Skip to content

Commit

Permalink
Fix inexistent version number usage for the API
Browse files Browse the repository at this point in the history
The currently used API version (4.0) doesn't exist anymore.
Change to the "sid" alias instead as it seems to be a more reliable option.
  • Loading branch information
gfieni committed Aug 29, 2020
1 parent 96e10da commit 6b1a0aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

const (
g5kAPIhostname string = "api.grid5000.fr"
g5kAPIversion string = "4.0"
g5kAPIversion string = "sid"
)

// Client is a client to the Grid'5000 REST API
Expand Down
2 changes: 1 addition & 1 deletion api/kadeploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (c *Client) SubmitDeployment(operation DeploymentOperation) (*OperationResp
req, err := c.caller.R().
SetBody(operation).
SetResult(&OperationResponse{}).
Post(c.getEndpoint("deployment", "/", url.Values{}))
Post(c.getEndpoint("internal/kadeployapi", "/deployment", url.Values{}))

if err != nil {
return nil, fmt.Errorf("Error while sending the deployment request: '%s'", err)
Expand Down

0 comments on commit 6b1a0aa

Please sign in to comment.