From d69abbaeda737b8585b4309e7ef9569f554ba7fb Mon Sep 17 00:00:00 2001 From: clint shryock Date: Mon, 7 Dec 2015 15:24:34 -0600 Subject: [PATCH] Run go fmt on VMWare vCloud Director provider --- builtin/providers/vcd/config.go | 14 +++++++------- builtin/providers/vcd/provider.go | 10 +++++----- .../vcd/resource_vcd_firewall_rules_test.go | 10 +++++----- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/builtin/providers/vcd/config.go b/builtin/providers/vcd/config.go index c6b5ba509a..44403146e4 100644 --- a/builtin/providers/vcd/config.go +++ b/builtin/providers/vcd/config.go @@ -8,11 +8,11 @@ import ( ) type Config struct { - User string - Password string - Org string - Href string - VDC string + User string + Password string + Org string + Href string + VDC string MaxRetryTimeout int } @@ -28,8 +28,8 @@ func (c *Config) Client() (*VCDClient, error) { } vcdclient := &VCDClient{ - govcd.NewVCDClient(*u), - c.MaxRetryTimeout} + govcd.NewVCDClient(*u), + c.MaxRetryTimeout} org, vcd, err := vcdclient.Authenticate(c.User, c.Password, c.Org, c.VDC) if err != nil { return nil, fmt.Errorf("Something went wrong: %s", err) diff --git a/builtin/providers/vcd/provider.go b/builtin/providers/vcd/provider.go index aab15cedd3..6ba1a07a6e 100644 --- a/builtin/providers/vcd/provider.go +++ b/builtin/providers/vcd/provider.go @@ -66,11 +66,11 @@ func Provider() terraform.ResourceProvider { func providerConfigure(d *schema.ResourceData) (interface{}, error) { config := Config{ - User: d.Get("user").(string), - Password: d.Get("password").(string), - Org: d.Get("org").(string), - Href: d.Get("url").(string), - VDC: d.Get("vdc").(string), + User: d.Get("user").(string), + Password: d.Get("password").(string), + Org: d.Get("org").(string), + Href: d.Get("url").(string), + VDC: d.Get("vdc").(string), MaxRetryTimeout: d.Get("maxRetryTimeout").(int), } diff --git a/builtin/providers/vcd/resource_vcd_firewall_rules_test.go b/builtin/providers/vcd/resource_vcd_firewall_rules_test.go index 2c1fa69e6b..1cb2d1e3ad 100644 --- a/builtin/providers/vcd/resource_vcd_firewall_rules_test.go +++ b/builtin/providers/vcd/resource_vcd_firewall_rules_test.go @@ -72,11 +72,11 @@ func testAccCheckVcdFirewallRulesAttributes(newRules, existingRules *govcd.EdgeG func createFirewallRulesConfigs(existingRules *govcd.EdgeGateway) string { config := Config{ - User: os.Getenv("VCD_USER"), - Password: os.Getenv("VCD_PASSWORD"), - Org: os.Getenv("VCD_ORG"), - Href: os.Getenv("VCD_URL"), - VDC: os.Getenv("VCD_VDC"), + User: os.Getenv("VCD_USER"), + Password: os.Getenv("VCD_PASSWORD"), + Org: os.Getenv("VCD_ORG"), + Href: os.Getenv("VCD_URL"), + VDC: os.Getenv("VCD_VDC"), MaxRetryTimeout: 240, } conn, err := config.Client()