mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-05 17:52:38 +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.")
|
return nil, errors.New("Import not supported for this IAM resource.")
|
||||||
}
|
}
|
||||||
config := m.(*Config)
|
config := m.(*Config)
|
||||||
s := strings.Split(d.Id(), " ")
|
s := strings.Fields(d.Id())
|
||||||
if len(s) != 2 {
|
if len(s) != 2 {
|
||||||
d.SetId("")
|
d.SetId("")
|
||||||
return nil, fmt.Errorf("Wrong number of parts to Binding id %s; expected 'resource_name role'.", s)
|
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.")
|
return nil, errors.New("Import not supported for this IAM resource.")
|
||||||
}
|
}
|
||||||
config := m.(*Config)
|
config := m.(*Config)
|
||||||
s := strings.Split(d.Id(), " ")
|
s := strings.Fields(d.Id())
|
||||||
if len(s) != 3 {
|
if len(s) != 3 {
|
||||||
d.SetId("")
|
d.SetId("")
|
||||||
return nil, fmt.Errorf("Wrong number of parts to Member id %s; expected 'resource_name role username'.", s)
|
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