CrowdStrike / terraform-provider-crowdstrike

https://registry.terraform.io/providers/CrowdStrike/crowdstrike/latest/docs
Mozilla Public License 2.0
10 stars 5 forks source link

Bug: inconsistent result after apply when creating host group #25

Closed l-teles closed 4 months ago

l-teles commented 4 months ago

When adding a new host group and running terraform apply, the following error was generated:

Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to crowdstrike_host_group.todelete, provider "provider[\"registry.terraform.io/crowdstrike/crowdstrike\"]" produced an
│ unexpected new value: .description: was null, but now cty.StringVal("").
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Host group definition:

resource "crowdstrike_host_group" "todelete" {
  name            = "To Delete_test"
  type            = "dynamic"
  assignment_rule = "platform_name:'Linux'"
}

The host group was, however, created successfully on the CrowdStrike side.

ffalor commented 4 months ago

Thank's for the report, Ill get a fix out very soon. In the meantime providing a description will prevent this error.

ffalor commented 4 months ago

The newest version fixes this error. Thank you for opening this issue!

terraform {
  required_providers {
    crowdstrike = {
      source = "CrowdStrike/crowdstrike"
      version = "0.0.3"
    }
  }
}