From 189c9f9123e2b7a31ae71ecbd29e7b3fdc7e9290 Mon Sep 17 00:00:00 2001 From: "Olve S. Hansen" Date: Fri, 8 Jun 2018 13:23:22 +0200 Subject: [PATCH] Fixes #1624 - issues with consecutive whitespace. --- google/resource_iam_binding.go | 2 +- google/resource_iam_member.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google/resource_iam_binding.go b/google/resource_iam_binding.go index f9089aa8dc6..4c1a12f7b4c 100644 --- a/google/resource_iam_binding.go +++ b/google/resource_iam_binding.go @@ -119,7 +119,7 @@ func iamBindingImport(resourceIdParser resourceIdParserFunc) schema.StateFunc { return nil, errors.New("Import not supported for this IAM resource.") } config := m.(*Config) - s := strings.Split(d.Id(), " ") + s := strings.Fields(d.Id()) if len(s) != 2 { d.SetId("") return nil, fmt.Errorf("Wrong number of parts to Binding id %s; expected 'resource_name role'.", s) diff --git a/google/resource_iam_member.go b/google/resource_iam_member.go index 9335dda9503..e4b66e1f150 100644 --- a/google/resource_iam_member.go +++ b/google/resource_iam_member.go @@ -33,7 +33,7 @@ func iamMemberImport(resourceIdParser resourceIdParserFunc) schema.StateFunc { return nil, errors.New("Import not supported for this IAM resource.") } config := m.(*Config) - s := strings.Split(d.Id(), " ") + s := strings.Fields(d.Id()) if len(s) != 3 { d.SetId("") return nil, fmt.Errorf("Wrong number of parts to Member id %s; expected 'resource_name role username'.", s)