Skip to content

Commit 2cacd5b

Browse files
Update resource id for ProjectInfo (#11226) (#7793)
[upstream:9941087dbb0a889b189e06558c067e0ca2c96944] Signed-off-by: Modular Magician <[email protected]>
1 parent 55d8ca2 commit 2cacd5b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Diff for: .changelog/11226.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:note
2+
billing: updated resource id for `google_billing_project_info`
3+
```

Diff for: google-beta/services/corebilling/resource_billing_project_info.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func resourceCoreBillingProjectInfoCreate(d *schema.ResourceData, meta interface
127127
}
128128

129129
// Store the ID now
130-
id, err := tpgresource.ReplaceVars(d, config, "projects/{{project}}/billingInfo")
130+
id, err := tpgresource.ReplaceVars(d, config, "projects/{{project}}")
131131
if err != nil {
132132
return fmt.Errorf("Error constructing id: %s", err)
133133
}
@@ -318,7 +318,7 @@ func resourceCoreBillingProjectInfoImport(d *schema.ResourceData, meta interface
318318
}
319319

320320
// Replace import id for the resource id
321-
id, err := tpgresource.ReplaceVars(d, config, "projects/{{project}}/billingInfo")
321+
id, err := tpgresource.ReplaceVars(d, config, "projects/{{project}}")
322322
if err != nil {
323323
return nil, fmt.Errorf("Error constructing id: %s", err)
324324
}

Diff for: website/docs/r/billing_project_info.html.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ The following arguments are supported:
7070

7171
In addition to the arguments listed above, the following computed attributes are exported:
7272

73-
* `id` - an identifier for the resource with format `projects/{{project}}/billingInfo`
73+
* `id` - an identifier for the resource with format `projects/{{project}}`
7474

7575

7676
## Timeouts

0 commit comments

Comments
 (0)