Skip to content

Commit

Permalink
fix iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
gpalmz committed Dec 27, 2024
1 parent c9db394 commit 4ccf1f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datadog/fwprovider/resource_datadog_azure_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"sync"

"github.com/DataDog/datadog-api-client-go/v2/api/datadogV1"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
frameworkPath "github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
Expand Down Expand Up @@ -358,10 +358,10 @@ func (r *integrationAzureResource) buildIntegrationAzureRequestBody(ctx context.
datadogDefinition.SetMetricsEnabledDefault(state.MetricsEnabledDefault.ValueBool())

Check failure on line 358 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / linter-checks

datadogDefinition.SetMetricsEnabledDefault undefined (type *datadogV1.AzureAccount has no field or method SetMetricsEnabledDefault)

Check failure on line 358 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (0.15.5, ubuntu-latest)

datadogDefinition.SetMetricsEnabledDefault undefined (type *datadogV1.AzureAccount has no field or method SetMetricsEnabledDefault)

Check failure on line 358 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (1.1.2, ubuntu-latest)

datadogDefinition.SetMetricsEnabledDefault undefined (type *datadogV1.AzureAccount has no field or method SetMetricsEnabledDefault)

Check failure on line 358 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (0.14.11, ubuntu-latest)

datadogDefinition.SetMetricsEnabledDefault undefined (type *datadogV1.AzureAccount has no field or method SetMetricsEnabledDefault)

Check failure on line 358 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test-tofu

datadogDefinition.SetMetricsEnabledDefault undefined (type *datadogV1.AzureAccount has no field or method SetMetricsEnabledDefault)

Check failure on line 358 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (1.5.3, ubuntu-latest)

datadogDefinition.SetMetricsEnabledDefault undefined (type *datadogV1.AzureAccount has no field or method SetMetricsEnabledDefault)
datadogDefinition.SetUsageMetricsEnabled(state.UsageMetricsEnabled.ValueBool())

Check failure on line 359 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / linter-checks

datadogDefinition.SetUsageMetricsEnabled undefined (type *datadogV1.AzureAccount has no field or method SetUsageMetricsEnabled)

Check failure on line 359 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (0.15.5, ubuntu-latest)

datadogDefinition.SetUsageMetricsEnabled undefined (type *datadogV1.AzureAccount has no field or method SetUsageMetricsEnabled)

Check failure on line 359 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (1.1.2, ubuntu-latest)

datadogDefinition.SetUsageMetricsEnabled undefined (type *datadogV1.AzureAccount has no field or method SetUsageMetricsEnabled)

Check failure on line 359 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (0.14.11, ubuntu-latest)

datadogDefinition.SetUsageMetricsEnabled undefined (type *datadogV1.AzureAccount has no field or method SetUsageMetricsEnabled)

Check failure on line 359 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test-tofu

datadogDefinition.SetUsageMetricsEnabled undefined (type *datadogV1.AzureAccount has no field or method SetUsageMetricsEnabled)

Check failure on line 359 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (1.5.3, ubuntu-latest)

datadogDefinition.SetUsageMetricsEnabled undefined (type *datadogV1.AzureAccount has no field or method SetUsageMetricsEnabled)

resourceProviderConfigsPayload := make([]datadogV1.ResourceProviderConfig, len(state.ResourceProviderConfigs))
for i, resourceProviderConfig := range state.ResourceProviderConfigs {
resourceProviderConfigsPayload := make([]datadogV1.ResourceProviderConfig, len(state.ResourceProviderConfigs.Elements()))

Check failure on line 361 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / linter-checks

undefined: datadogV1.ResourceProviderConfig

Check failure on line 361 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (0.15.5, ubuntu-latest)

undefined: datadogV1.ResourceProviderConfig

Check failure on line 361 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (1.1.2, ubuntu-latest)

undefined: datadogV1.ResourceProviderConfig

Check failure on line 361 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (0.14.11, ubuntu-latest)

undefined: datadogV1.ResourceProviderConfig

Check failure on line 361 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test-tofu

undefined: datadogV1.ResourceProviderConfig

Check failure on line 361 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (1.5.3, ubuntu-latest)

undefined: datadogV1.ResourceProviderConfig
for i, resourceProviderConfig := range state.ResourceProviderConfigs.Elements() {
resourceProviderConfigsPayload[i] = datadogV1.ResourceProviderConfig{

Check failure on line 363 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / linter-checks

undefined: datadogV1.ResourceProviderConfig

Check failure on line 363 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (0.15.5, ubuntu-latest)

undefined: datadogV1.ResourceProviderConfig

Check failure on line 363 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (1.1.2, ubuntu-latest)

undefined: datadogV1.ResourceProviderConfig

Check failure on line 363 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (0.14.11, ubuntu-latest)

undefined: datadogV1.ResourceProviderConfig

Check failure on line 363 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test-tofu

undefined: datadogV1.ResourceProviderConfig

Check failure on line 363 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (1.5.3, ubuntu-latest)

undefined: datadogV1.ResourceProviderConfig
Namespace: resourceProviderConfig.Namespace.ValueString(),
Namespace: resourceProviderConfig.Namespace.ValueString(),

Check failure on line 364 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / linter-checks

resourceProviderConfig.Namespace undefined (type attr.Value has no field or method Namespace)

Check failure on line 364 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (0.15.5, ubuntu-latest)

resourceProviderConfig.Namespace undefined (type attr.Value has no field or method Namespace)

Check failure on line 364 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (1.1.2, ubuntu-latest)

resourceProviderConfig.Namespace undefined (type attr.Value has no field or method Namespace)

Check failure on line 364 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (0.14.11, ubuntu-latest)

resourceProviderConfig.Namespace undefined (type attr.Value has no field or method Namespace)

Check failure on line 364 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test-tofu

resourceProviderConfig.Namespace undefined (type attr.Value has no field or method Namespace)

Check failure on line 364 in datadog/fwprovider/resource_datadog_azure_integration.go

View workflow job for this annotation

GitHub Actions / test (1.5.3, ubuntu-latest)

resourceProviderConfig.Namespace undefined (type attr.Value has no field or method Namespace)
MetricsEnabled: resourceProviderConfig.MetricsEnabled.ValueString(),
}
}
Expand Down

0 comments on commit 4ccf1f5

Please sign in to comment.