Skip to content

Commit

Permalink
Pluralize import error message
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick authored and modular-magician committed Jul 17, 2019
1 parent 15f79ee commit 0ecdc50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
stringParts := strings.Split(d.Get("name").(string), "/")
if len(stringParts) < 2 {
return nil, fmt.Errorf("Error parsing parent name. Should be in form accessPolicies/{{policy_id}}/<%= object.name.camelize(:lower) -%>/{{short_name}}")
return nil, fmt.Errorf("Error parsing parent name. Should be in form accessPolicies/{{policy_id}}/<%= object.name.pluralize.camelize(:lower) -%>/{{short_name}}")
}
d.Set("parent", fmt.Sprintf("%s/%s", stringParts[0], stringParts[1]))
return []*schema.ResourceData{d}, nil

0 comments on commit 0ecdc50

Please sign in to comment.