Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make credit_types_treatment in google_billing_budget resource updatable #12947

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/6763.txt
@@ -0,0 +1,3 @@
```release-note:bug
billingbudget: fixed a bug where `budget_filter.credit_types_treatment` in `google_billing_budget` resource was not updating.
```
3 changes: 2 additions & 1 deletion google/resource_billing_budget.go
Expand Up @@ -563,7 +563,8 @@ func resourceBillingBudgetUpdate(d *schema.ResourceData, meta interface{}) error
"budgetFilter.labels",
"budgetFilter.calendarPeriod",
"budgetFilter.customPeriod",
"budgetFilter.services")
"budgetFilter.services",
"budgetFilter.creditTypesTreatment")
}

if d.HasChange("amount") {
Expand Down
2 changes: 2 additions & 0 deletions google/resource_billing_budget_test.go
Expand Up @@ -147,6 +147,7 @@ resource "google_billing_budget" "budget" {
labels = {
label = "bar"
}
credit_types_treatment = "EXCLUDE_ALL_CREDITS"
}

amount {
Expand Down Expand Up @@ -241,6 +242,7 @@ resource "google_billing_budget" "budget" {
labels = {
label1 = "bar2"
}
credit_types_treatment = "INCLUDE_ALL_CREDITS"
services = ["services/24E6-581D-38E5"] # Bigquery
}

Expand Down