Skip to content

Commit 0f59cae

Browse files
fix(vpc): fix typo in url for acl calls (scaleway#2483)
Co-authored-by: Jonathan R. <[email protected]>
1 parent f65bed4 commit 0f59cae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/vpc/v2/vpc_sdk.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ func (s *API) GetACL(req *GetACLRequest, opts ...scw.RequestOption) (*GetACLResp
17861786

17871787
scwReq := &scw.ScalewayRequest{
17881788
Method: "GET",
1789-
Path: "/vpc/v2/regions/" + fmt.Sprint(req.Region) + "/vpc/" + fmt.Sprint(req.VpcID) + "/acl-rules",
1789+
Path: "/vpc/v2/regions/" + fmt.Sprint(req.Region) + "/vpcs/" + fmt.Sprint(req.VpcID) + "/acl-rules",
17901790
Query: query,
17911791
}
17921792

@@ -1818,7 +1818,7 @@ func (s *API) SetACL(req *SetACLRequest, opts ...scw.RequestOption) (*SetACLResp
18181818

18191819
scwReq := &scw.ScalewayRequest{
18201820
Method: "PUT",
1821-
Path: "/vpc/v2/regions/" + fmt.Sprint(req.Region) + "/vpc/" + fmt.Sprint(req.VpcID) + "/acl-rules",
1821+
Path: "/vpc/v2/regions/" + fmt.Sprint(req.Region) + "/vpcs/" + fmt.Sprint(req.VpcID) + "/acl-rules",
18221822
}
18231823

18241824
err = scwReq.SetBody(req)

0 commit comments

Comments
 (0)