mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-03 08:42:39 +00:00
parent
7401b46784
commit
d605e0f170
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user