Skip to content

Commit

Permalink
bump vendored sdk, remove extra fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ack committed Mar 21, 2016
1 parent c4b2322 commit 4c4be81
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 158 deletions.
40 changes: 18 additions & 22 deletions Godeps/Godeps.json

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

19 changes: 0 additions & 19 deletions builtin/providers/clc/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package clc
import (
"fmt"
"log"
"net/url"
"strconv"

clc "github.com/CenturyLinkCloud/clc-sdk"
Expand Down Expand Up @@ -31,18 +30,6 @@ func Provider() terraform.ResourceProvider {
DefaultFunc: schema.EnvDefaultFunc("CLC_PASSWORD", nil),
Description: "Your CLC password",
},
"account": &schema.Schema{
Type: schema.TypeString,
Required: true,
DefaultFunc: schema.EnvDefaultFunc("CLC_ACCOUNT", nil),
Description: "Your CLC account alias",
},
"url": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Description: "Base CLC API url",
DefaultFunc: schema.EnvDefaultFunc("CLC_BASE_URL", nil),
},
},

ResourcesMap: map[string]*schema.Resource{
Expand All @@ -65,12 +52,6 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
if err != nil {
return nil, fmt.Errorf("Failed to create CLC config with provided details: %v", err)
}
if urlStr := d.Get("url").(string); urlStr != "" {
uri, err := url.Parse(urlStr)
if err == nil {
config.BaseURL = uri
}
}
config.UserAgent = fmt.Sprintf("terraform-clc terraform/%s", terraform.Version)

client := clc.New(config)
Expand Down
12 changes: 8 additions & 4 deletions vendor/github.com/CenturyLinkCloud/clc-sdk/api/api.go

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

22 changes: 0 additions & 22 deletions vendor/github.com/mikebeyer/env/LICENSE.md

This file was deleted.

18 changes: 0 additions & 18 deletions vendor/github.com/mikebeyer/env/README.md

This file was deleted.

73 changes: 0 additions & 73 deletions vendor/github.com/mikebeyer/env/env.go

This file was deleted.

0 comments on commit 4c4be81

Please sign in to comment.