From 9e823d2bc7569b619330a94efd919af90b8b90f9 Mon Sep 17 00:00:00 2001 From: Jake Champlin Date: Mon, 3 Apr 2017 23:48:35 -0400 Subject: [PATCH] gofmt files --- builtin/providers/oracleopc/config.go | 8 ++++---- builtin/providers/oracleopc/resource_instance.go | 2 +- builtin/providers/oracleopc/resource_ip_reservation.go | 2 +- builtin/providers/oracleopc/resource_storage_volume.go | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/builtin/providers/oracleopc/config.go b/builtin/providers/oracleopc/config.go index fbae3b5d5..9e4c134e7 100644 --- a/builtin/providers/oracleopc/config.go +++ b/builtin/providers/oracleopc/config.go @@ -15,13 +15,13 @@ type Config struct { } type storageAttachment struct { - index int + index int instanceName *compute.InstanceName } type OPCClient struct { *compute.AuthenticatedClient - MaxRetryTimeout int + MaxRetryTimeout int storageAttachmentsByVolumeCache map[string][]storageAttachment } @@ -38,8 +38,8 @@ func (c *Config) Client() (*OPCClient, error) { } opcClient := &OPCClient{ - AuthenticatedClient: authenticatedClient, - MaxRetryTimeout: c.MaxRetryTimeout, + AuthenticatedClient: authenticatedClient, + MaxRetryTimeout: c.MaxRetryTimeout, storageAttachmentsByVolumeCache: make(map[string][]storageAttachment), } diff --git a/builtin/providers/oracleopc/resource_instance.go b/builtin/providers/oracleopc/resource_instance.go index 70f3b99c8..f242ab412 100644 --- a/builtin/providers/oracleopc/resource_instance.go +++ b/builtin/providers/oracleopc/resource_instance.go @@ -212,7 +212,7 @@ func getStorageAttachments(d *schema.ResourceData) []compute.LaunchPlanStorageAt for _, i := range storage.List() { attrs := i.(map[string]interface{}) storageAttachments = append(storageAttachments, compute.LaunchPlanStorageAttachmentSpec{ - Index: attrs["index"].(int), + Index: attrs["index"].(int), Volume: attrs["volume"].(string), }) } diff --git a/builtin/providers/oracleopc/resource_ip_reservation.go b/builtin/providers/oracleopc/resource_ip_reservation.go index fa25679d2..84bc3781d 100644 --- a/builtin/providers/oracleopc/resource_ip_reservation.go +++ b/builtin/providers/oracleopc/resource_ip_reservation.go @@ -38,7 +38,7 @@ func resourceIPReservation() *schema.Resource { ForceNew: true, Elem: &schema.Schema{Type: schema.TypeString}, }, - + "ip": &schema.Schema{ Type: schema.TypeString, Optional: false, diff --git a/builtin/providers/oracleopc/resource_storage_volume.go b/builtin/providers/oracleopc/resource_storage_volume.go index 2d80d09f2..73d4a2dc3 100644 --- a/builtin/providers/oracleopc/resource_storage_volume.go +++ b/builtin/providers/oracleopc/resource_storage_volume.go @@ -278,7 +278,7 @@ func resourceStorageVolumeDelete(d *schema.ResourceData, meta interface{}) error sva.DeleteStorageAttachment(attachment.Name) sva.WaitForStorageAttachmentDeleted(attachment.Name, meta.(*OPCClient).MaxRetryTimeout) attachmentsToCache[index] = storageAttachment{ - index: attachment.Index, + index: attachment.Index, instanceName: compute.InstanceNameFromString(attachment.InstanceName), } }