From 7dc7a3d5a00ea1e0bbc793668a148d5155637f39 Mon Sep 17 00:00:00 2001 From: Emily Ye Date: Mon, 5 Aug 2019 11:06:51 -0700 Subject: [PATCH] fmt --- third_party/terraform/resources/resource_google_folder.go | 5 ++--- .../resources/resource_google_folder_organization_policy.go | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/third_party/terraform/resources/resource_google_folder.go b/third_party/terraform/resources/resource_google_folder.go index 426bda69346c..4ac53e29ccc9 100644 --- a/third_party/terraform/resources/resource_google_folder.go +++ b/third_party/terraform/resources/resource_google_folder.go @@ -27,7 +27,6 @@ func resourceGoogleFolder() *schema.Resource { Delete: schema.DefaultTimeout(4 * time.Minute), }, - Schema: map[string]*schema.Schema{ // Format is either folders/{folder_id} or organizations/{org_id}. "parent": { @@ -202,7 +201,7 @@ func resourceGoogleFolderImportState(d *schema.ResourceData, m interface{}) ([]* // Util to get a Folder resource from API. Note that folder described by name is not necessarily the // ResourceData resource. -func getGoogleFolder(folderName string, d *schema.ResourceData, config *Config) (*resourceManagerV2Beta1.Folder, error){ +func getGoogleFolder(folderName string, d *schema.ResourceData, config *Config) (*resourceManagerV2Beta1.Folder, error) { var folder *resourceManagerV2Beta1.Folder err := retryTimeDuration(func() error { var reqErr error @@ -213,4 +212,4 @@ func getGoogleFolder(folderName string, d *schema.ResourceData, config *Config) return nil, err } return folder, nil -} \ No newline at end of file +} diff --git a/third_party/terraform/resources/resource_google_folder_organization_policy.go b/third_party/terraform/resources/resource_google_folder_organization_policy.go index 52b79ef0e4c8..b4ffa962e760 100644 --- a/third_party/terraform/resources/resource_google_folder_organization_policy.go +++ b/third_party/terraform/resources/resource_google_folder_organization_policy.go @@ -119,7 +119,7 @@ func resourceGoogleFolderOrganizationPolicyDelete(d *schema.ResourceData, meta i Constraint: canonicalOrgPolicyConstraint(d.Get("constraint").(string)), }).Do() return delErr - }, d.Timeout(schema.TimeoutDelete)) + }, d.Timeout(schema.TimeoutDelete)) } func setFolderOrganizationPolicy(d *schema.ResourceData, meta interface{}) error { @@ -148,5 +148,5 @@ func setFolderOrganizationPolicy(d *schema.ResourceData, meta interface{}) error }, }).Do() return setErr - }, d.Timeout(schema.TimeoutCreate)) + }, d.Timeout(schema.TimeoutCreate)) }