Skip to content

Commit

Permalink
FIx
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Mar 19, 2020
1 parent 7608721 commit 5fa5540
Show file tree
Hide file tree
Showing 6 changed files with 264 additions and 1,992 deletions.
4 changes: 2 additions & 2 deletions internal/namespaces/baremetal/v1alpha1/baremetal_cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"testing"

"github.com/scaleway/scaleway-cli/internal/core"
"github.com/scaleway/scaleway-sdk-go/api/instance/v1"
baremetal "github.com/scaleway/scaleway-sdk-go/api/baremetal/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

func init() {
if !core.UpdateCassettes {
instance.RetryInterval = 0
baremetal.RetryInterval = 0
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func baremetalServerCreateRun(ctx context.Context, argsI interface{}) (i interfa
// while baremetal does not have listoffer name filter we are forced to iterate
// on the list of offers provided
requestedType := tmpRequest.Type
offer, err := api.GetOfferFromName(&baremetal.GetOfferIDFromOfferNameRequest{
offer, err := api.GetOfferFromName(&baremetal.GetOfferFromOfferNameRequest{
OfferName: requestedType,
Zone: tmpRequest.Zone,
})
Expand Down
Loading

0 comments on commit 5fa5540

Please sign in to comment.