Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
stuntgoat committed Oct 18, 2014
1 parent 672c17f commit 055cd24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions builtin/providers/google/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ const clientScopes string = "https://www.googleapis.com/auth/compute"
const authURL string = "https://accounts.google.com/o/oauth2/auth"
const tokenURL string = "https://accounts.google.com/o/oauth2/token"


// Config is the configuration structure used to instantiate the Google
// provider.
type Config struct {
AccountFile string
Project string
Region string
AccountFile string
Project string
Region string

clientCompute *compute.Service
}
Expand Down Expand Up @@ -67,8 +66,8 @@ func (c *Config) loadAndValidate() error {
Config: &oauth.Config{
ClientId: account.ClientId,
Scope: clientScopes,
AuthURL: authURL,
TokenURL: tokenURL,
AuthURL: authURL,
TokenURL: tokenURL,
},
Token: token,
}
Expand Down
6 changes: 3 additions & 3 deletions builtin/providers/google/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ func Provider() terraform.ResourceProvider {

func providerConfigure(d *schema.ResourceData) (interface{}, error) {
config := Config{
AccountFile: d.Get("account_file").(string),
Project: d.Get("project").(string),
Region: d.Get("region").(string),
AccountFile: d.Get("account_file").(string),
Project: d.Get("project").(string),
Region: d.Get("region").(string),
}

if err := config.loadAndValidate(); err != nil {
Expand Down

0 comments on commit 055cd24

Please sign in to comment.