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

bugfix: provider crash if body contains unknown float value #648

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

ms-henglu
Copy link
Member

related issue: #538 (comment)

When the body contains an unknown float number, the provider will crash.

For example:

resource "azapi_resource" "automationAccount1" {
  type      = "Microsoft.Automation/automationAccounts@2023-11-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = "acctesthenglu021"
  location  = "westus"
  body = {
    properties = {
      sku = {
        name = "Basic"
        value = azapi_resource.automationAccount.output.properties.sku.name == "Basic" ? 1.1 : 1.2
      }
    }
  }
  schema_validation_enabled = false
  response_export_values = []
}

@ms-henglu ms-henglu merged commit 32f9362 into main Oct 23, 2024
10 checks passed
@ms-henglu ms-henglu deleted the issue-538 branch October 23, 2024 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants