Skip to content

Commit 9b83ade

Browse files
committed
Rename id to object_id since id is a reserved attribute
1 parent 85a66b7 commit 9b83ade

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

restapi/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func make_api_object(d *schema.ResourceData, m interface{}) (*api_object, error)
2020
delete_path := d.Get("path").(string) + "/{id}"
2121

2222
/* Allow user to specify the ID manually */
23-
id := d.Get("id").(string)
23+
id := d.Get("object_id").(string)
2424
if id == "" {
2525
/* If not specified, see if terraform has an ID */
2626
id = d.Id()

restapi/resource_api_object.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func resourceRestApi() *schema.Resource {
4747
Description: "Defaults to `path/{id}`. The API path that represents where to DESTROY (DELETE) objects of this type on the API server. The string `{id}` will be replaced with the terraform ID of the object.",
4848
Optional: true,
4949
},
50-
"id": &schema.Schema{
50+
"object_id": &schema.Schema{
5151
Type: schema.TypeString,
5252
Description: "Defaults to the id learned by the provider during normal operations and `id_attribute`. Allows you to set the id manually. This is used in conjunction with the `*_path` attributes.",
5353
Optional: true,

0 commit comments

Comments
 (0)