Skip to content

Commit 2a7e34f

Browse files
authored
fix(inference): change DeploymentId to DeploymentID (#4026)
1 parent 49efeb2 commit 2a7e34f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require (
2727
github.com/mattn/go-isatty v0.0.20
2828
github.com/moby/buildkit v0.13.2
2929
github.com/opencontainers/go-digest v1.0.0
30-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.29.0.20240802132335-e0c38bed19ff
30+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.29.0.20240806091102-e2ad2259d64d
3131
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3232
github.com/spf13/cobra v1.8.1
3333
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
463463
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
464464
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
465465
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
466-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.29.0.20240802132335-e0c38bed19ff h1:OTnOnU2k3+jPgl6us95MIoqiw7E83fDH3gJNJpRi70s=
467-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.29.0.20240802132335-e0c38bed19ff/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
466+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.29.0.20240806091102-e2ad2259d64d h1:CcWeEzNNUpOTEpm+PpbYgbRDZ55r5/IReKr4Y4SuocU=
467+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.29.0.20240806091102-e2ad2259d64d/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
468468
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
469469
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
470470
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/inference/v1beta1/custom_deployment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func deploymentCreateBuilder(c *core.Command) *core.Command {
7070
c.WaitFunc = func(ctx context.Context, _, respI interface{}) (interface{}, error) {
7171
api := inference.NewAPI(core.ExtractClient(ctx))
7272
return api.WaitForDeployment(&inference.WaitForDeploymentRequest{
73-
DeploymentId: respI.(*inference.Deployment).ID,
73+
DeploymentID: respI.(*inference.Deployment).ID,
7474
Region: respI.(*inference.Deployment).Region,
7575
Status: respI.(*inference.Deployment).Status,
7676
Timeout: scw.TimeDurationPtr(deploymentActionTimeout),
@@ -119,7 +119,7 @@ func deploymentDeleteBuilder(c *core.Command) *core.Command {
119119
c.WaitFunc = func(ctx context.Context, _, respI interface{}) (interface{}, error) {
120120
api := inference.NewAPI(core.ExtractClient(ctx))
121121
deployment, err := api.WaitForDeployment(&inference.WaitForDeploymentRequest{
122-
DeploymentId: respI.(*inference.Deployment).ID,
122+
DeploymentID: respI.(*inference.Deployment).ID,
123123
Region: respI.(*inference.Deployment).Region,
124124
Status: respI.(*inference.Deployment).Status,
125125
Timeout: scw.TimeDurationPtr(deploymentActionTimeout),

0 commit comments

Comments
 (0)