Skip to content

Commit

Permalink
Merge pull request #63 from terraform-providers/server-validation
Browse files Browse the repository at this point in the history
switch server type API
  • Loading branch information
nicolai86 authored May 18, 2018
2 parents d9983d0 + 1d944bd commit f2e0659
Show file tree
Hide file tree
Showing 4 changed files with 22 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: 3 additions & 3 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,10 @@
"revisionTime": "2016-10-03T17:45:16Z"
},
{
"checksumSHA1": "n8j/CVEarUKArSLFjbZ4vMcxKf4=",
"checksumSHA1": "5PC3eHJZwTMQyGJltpcIJp/aCNw=",
"path": "github.com/nicolai86/scaleway-sdk",
"revision": "514d84f85641e74c600b56fb9ec5083cd4803a73",
"revisionTime": "2018-04-25T16:23:49Z"
"revision": "4871b0a66c85ce1a78bb5d8a62714ed1a5669650",
"revisionTime": "2018-05-12T06:04:43Z"
},
{
"checksumSHA1": "u5s2PZ7fzCOqQX7bVPf9IJ+qNLQ=",
Expand Down

0 comments on commit f2e0659

Please sign in to comment.