update with go fmt
This commit is contained in:
parent
d2e4b662d3
commit
ec2d22cf29
|
@ -42,7 +42,6 @@ func (c *Config) loadAndValidate() error {
|
|||
"https://www.googleapis.com/auth/devstorage.full_control",
|
||||
}
|
||||
|
||||
|
||||
if c.AccountFile == "" {
|
||||
c.AccountFile = os.Getenv("GOOGLE_ACCOUNT_FILE")
|
||||
}
|
||||
|
@ -104,7 +103,7 @@ func (c *Config) loadAndValidate() error {
|
|||
client = conf.Client(oauth2.NoContext)
|
||||
|
||||
} else {
|
||||
log.Printf("[INFO] Authenticating using DefaultClient");
|
||||
log.Printf("[INFO] Authenticating using DefaultClient")
|
||||
err := error(nil)
|
||||
client, err = google.DefaultClient(oauth2.NoContext, clientScopes...)
|
||||
if err != nil {
|
||||
|
|
|
@ -788,7 +788,7 @@ func resourceComputeInstanceUpdate(d *schema.ResourceData, meta interface{}) err
|
|||
return opErr
|
||||
}
|
||||
|
||||
d.SetPartial("scheduling");
|
||||
d.SetPartial("scheduling")
|
||||
}
|
||||
|
||||
networkInterfacesCount := d.Get("network_interface.#").(int)
|
||||
|
|
|
@ -255,14 +255,14 @@ func resourceComputeInstanceGroupManagerDelete(d *schema.ResourceData, meta inte
|
|||
|
||||
for err != nil && currentSize > 0 {
|
||||
if !strings.Contains(err.Error(), "timeout") {
|
||||
return err;
|
||||
return err
|
||||
}
|
||||
|
||||
instanceGroup, err := config.clientCompute.InstanceGroups.Get(
|
||||
config.Project, d.Get("zone").(string), d.Id()).Do()
|
||||
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error getting instance group size: %s", err);
|
||||
return fmt.Errorf("Error getting instance group size: %s", err)
|
||||
}
|
||||
|
||||
if instanceGroup.Size >= currentSize {
|
||||
|
|
Loading…
Reference in New Issue