diff --git a/google/resource_iam_binding.go b/google/resource_iam_binding.go index f9089aa8..4c1a12f7 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 9335dda9..e4b66e1f 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)