Skip to content

Commit

Permalink
switch server type API
Browse files Browse the repository at this point in the history
fixes #62
  • Loading branch information
nicolai86 committed May 15, 2018
1 parent 7ab3f91 commit 8653ce8
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 26 deletions.
3 changes: 3 additions & 0 deletions scaleway/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ func (c *Config) Client() (*Client, error) {
commercialServerTypes = availability.CommercialTypes()
sort.StringSlice(commercialServerTypes).Sort()
}
if os.Getenv("DISABLE_SCALEWAY_SERVER_TYPE_VALIDATION") != "" {
commercialServerTypes = commercialServerTypes[:0]
}
}
return &Client{api}, nil
}
24 changes: 8 additions & 16 deletions vendor/github.com/nicolai86/scaleway-sdk/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions vendor/github.com/nicolai86/scaleway-sdk/availability.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions vendor/github.com/nicolai86/scaleway-sdk/server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,10 +558,10 @@
"revisionTime": "2016-10-03T17:45:16Z"
},
{
"checksumSHA1": "qPUxUkRxA0nnbZ9Pb7yUor1P7Fg=",
"checksumSHA1": "5PC3eHJZwTMQyGJltpcIJp/aCNw=",
"path": "github.com/nicolai86/scaleway-sdk",
"revision": "d749f7b83389f1afe19b81a610fad5ebb7a12744",
"revisionTime": "2018-04-01T05:36:48Z"
"revision": "4871b0a66c85ce1a78bb5d8a62714ed1a5669650",
"revisionTime": "2018-05-12T06:04:43Z"
},
{
"checksumSHA1": "u5s2PZ7fzCOqQX7bVPf9IJ+qNLQ=",
Expand Down

0 comments on commit 8653ce8

Please sign in to comment.