Skip to content

Commit d69abba

Browse files
committed
Run go fmt on VMWare vCloud Director provider
1 parent c95667c commit d69abba

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

builtin/providers/vcd/config.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
)
99

1010
type Config struct {
11-
User string
12-
Password string
13-
Org string
14-
Href string
15-
VDC string
11+
User string
12+
Password string
13+
Org string
14+
Href string
15+
VDC string
1616
MaxRetryTimeout int
1717
}
1818

@@ -28,8 +28,8 @@ func (c *Config) Client() (*VCDClient, error) {
2828
}
2929

3030
vcdclient := &VCDClient{
31-
govcd.NewVCDClient(*u),
32-
c.MaxRetryTimeout}
31+
govcd.NewVCDClient(*u),
32+
c.MaxRetryTimeout}
3333
org, vcd, err := vcdclient.Authenticate(c.User, c.Password, c.Org, c.VDC)
3434
if err != nil {
3535
return nil, fmt.Errorf("Something went wrong: %s", err)

builtin/providers/vcd/provider.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ func Provider() terraform.ResourceProvider {
6666

6767
func providerConfigure(d *schema.ResourceData) (interface{}, error) {
6868
config := Config{
69-
User: d.Get("user").(string),
70-
Password: d.Get("password").(string),
71-
Org: d.Get("org").(string),
72-
Href: d.Get("url").(string),
73-
VDC: d.Get("vdc").(string),
69+
User: d.Get("user").(string),
70+
Password: d.Get("password").(string),
71+
Org: d.Get("org").(string),
72+
Href: d.Get("url").(string),
73+
VDC: d.Get("vdc").(string),
7474
MaxRetryTimeout: d.Get("maxRetryTimeout").(int),
7575
}
7676

builtin/providers/vcd/resource_vcd_firewall_rules_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ func testAccCheckVcdFirewallRulesAttributes(newRules, existingRules *govcd.EdgeG
7272

7373
func createFirewallRulesConfigs(existingRules *govcd.EdgeGateway) string {
7474
config := Config{
75-
User: os.Getenv("VCD_USER"),
76-
Password: os.Getenv("VCD_PASSWORD"),
77-
Org: os.Getenv("VCD_ORG"),
78-
Href: os.Getenv("VCD_URL"),
79-
VDC: os.Getenv("VCD_VDC"),
75+
User: os.Getenv("VCD_USER"),
76+
Password: os.Getenv("VCD_PASSWORD"),
77+
Org: os.Getenv("VCD_ORG"),
78+
Href: os.Getenv("VCD_URL"),
79+
VDC: os.Getenv("VCD_VDC"),
8080
MaxRetryTimeout: 240,
8181
}
8282
conn, err := config.Client()

0 commit comments

Comments
 (0)