Skip to content

Commit

Permalink
Merge branch 'master' into gpalmz/azure-metric-filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
gpalmz committed Dec 27, 2024
2 parents ad78903 + 1662048 commit a628cc1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ jobs:
with:
go-version: "1.23"
cache: true
- uses: opentofu/setup-opentofu@v1
- uses: opentofu/setup-opentofu@592200bd4b9bbf4772ace78f887668b1aee8f716 # v1.0.5
with:
tofu_version: 1.6.1
tofu_version: 1.6.3
tofu_wrapper: false
- name: Set Terraform env vars
run: |
Expand Down
5 changes: 5 additions & 0 deletions datadog/fwprovider/resource_datadog_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ func (r *webhookResource) Read(ctx context.Context, request resource.ReadRequest
}

id := state.Name.ValueString()
// handle import case
if state.Name.IsNull() {
id = state.ID.ValueString()
}

resp, httpResp, err := r.Api.GetWebhooksIntegration(r.Auth, id)

if err != nil {
Expand Down

0 comments on commit a628cc1

Please sign in to comment.