Skip to content

Commit

Permalink
go fmt files
Browse files Browse the repository at this point in the history
  • Loading branch information
chenrui333 committed Jun 7, 2020
1 parent 336db17 commit 14b4717
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions providers/fastly/fastly_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
type FastlyProvider struct { //nolint
terraformutils.Provider
customerID string
apiKey string
apiKey string
}

func (p *FastlyProvider) Init(args []string) error {
Expand All @@ -50,7 +50,7 @@ func (p *FastlyProvider) GetProviderData(arg ...string) map[string]interface{} {
return map[string]interface{}{
"provider": map[string]interface{}{
"fastly": map[string]interface{}{
"version": providerwrapper.GetProviderVersion(p.GetName()),
"version": providerwrapper.GetProviderVersion(p.GetName()),
"customer_id": p.customerID,
},
},
Expand All @@ -64,7 +64,7 @@ func (FastlyProvider) GetResourceConnections() map[string]map[string][]string {
func (p *FastlyProvider) GetSupportedService() map[string]terraformutils.ServiceGenerator {
return map[string]terraformutils.ServiceGenerator{
"service_v1": &ServiceV1Generator{},
"user": &UserGenerator{},
"user": &UserGenerator{},
}
}

Expand All @@ -79,7 +79,7 @@ func (p *FastlyProvider) InitService(serviceName string, verbose bool) error {
p.Service.SetProviderName(p.GetName())
p.Service.SetArgs(map[string]interface{}{
"customer_id": p.customerID,
"api_key": p.apiKey,
"api_key": p.apiKey,
})
return nil
}
4 changes: 2 additions & 2 deletions providers/fastly/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type UserGenerator struct {
}

func (g *UserGenerator) loadUsers(client *fastly.Client, customerID string) error {
users, err := client.ListCustomerUsers(&fastly.ListCustomerUsersInput{ CustomerID: customerID })
users, err := client.ListCustomerUsers(&fastly.ListCustomerUsersInput{CustomerID: customerID})
if err != nil {
return err
}
Expand All @@ -50,4 +50,4 @@ func (g *UserGenerator) InitResources() error {
}

return nil
}
}

0 comments on commit 14b4717

Please sign in to comment.