Skip to content

Commit 189c9f9

Browse files
author
Olve S. Hansen
committed
Fixes hashicorp#1624 - issues with consecutive whitespace.
1 parent dd92a37 commit 189c9f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google/resource_iam_binding.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func iamBindingImport(resourceIdParser resourceIdParserFunc) schema.StateFunc {
119119
return nil, errors.New("Import not supported for this IAM resource.")
120120
}
121121
config := m.(*Config)
122-
s := strings.Split(d.Id(), " ")
122+
s := strings.Fields(d.Id())
123123
if len(s) != 2 {
124124
d.SetId("")
125125
return nil, fmt.Errorf("Wrong number of parts to Binding id %s; expected 'resource_name role'.", s)

google/resource_iam_member.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func iamMemberImport(resourceIdParser resourceIdParserFunc) schema.StateFunc {
3333
return nil, errors.New("Import not supported for this IAM resource.")
3434
}
3535
config := m.(*Config)
36-
s := strings.Split(d.Id(), " ")
36+
s := strings.Fields(d.Id())
3737
if len(s) != 3 {
3838
d.SetId("")
3939
return nil, fmt.Errorf("Wrong number of parts to Member id %s; expected 'resource_name role username'.", s)

0 commit comments

Comments
 (0)