PrefectHQ / terraform-provider-prefect

Terraform Provider for Prefect Cloud
https://registry.terraform.io/providers/PrefectHQ/prefect/latest/docs
Apache License 2.0
33 stars 16 forks source link

bug: `prefect_work_pools` (list fetch) has a type mismatch #98

Closed parkedwards closed 11 months ago

parkedwards commented 11 months ago

locally:

│ An unexpected error was encountered while verifying an attribute value matched its expected type to prevent unexpected behavior or panics. This is always an error in the provider. Please
│ report the following to the provider developer:
│
│ Expected framework type from provider logic: types.ListType[types.ObjectType["account_id":UUIDType, "base_job_template":basetypes.StringType, "concurrency_limit":basetypes.Int64Type,
│ "created":TimestampType, "default_queue_id":UUIDType, "description":basetypes.StringType, "id":UUIDType, "name":basetypes.StringType, "paused":basetypes.BoolType,
│ "type":basetypes.StringType, "updated":TimestampType, "workspace_id":UUIDType]] / underlying type: tftypes.List[tftypes.Object["account_id":tftypes.String,
│ "base_job_template":tftypes.String, "concurrency_limit":tftypes.Number, "created":tftypes.String, "default_queue_id":tftypes.String, "description":tftypes.String, "id":tftypes.String,
│ "name":tftypes.String, "paused":tftypes.Bool, "type":tftypes.String, "updated":tftypes.String, "workspace_id":tftypes.String]]
│ Received framework type from provider logic: types.ListType[types.ObjectType["base_job_template":basetypes.StringType, "concurrency_limit":basetypes.Int64Type, "created":TimestampType,
│ "default_queue_id":UUIDType, "description":basetypes.StringType, "id":UUIDType, "name":basetypes.StringType, "paused":basetypes.BoolType, "type":basetypes.StringType,
│ "updated":TimestampType]] / underlying type: tftypes.List[tftypes.Object["base_job_template":tftypes.String, "concurrency_limit":tftypes.Number, "created":tftypes.String,
│ "default_queue_id":tftypes.String, "description":tftypes.String, "id":tftypes.String, "name":tftypes.String, "paused":tftypes.Bool, "type":tftypes.String, "updated":tftypes.String]]
│ Path: work_pools

remote:

Error: Invalid Object Attribute Type
with data.prefect_work_pools.all
on outputs.tf line 57, in data "prefect_work_pools" "all":
data "prefect_work_pools" "all" {
While creating a Object value, an invalid attribute value was detected. A Object must use a matching attribute type for the value. This is always an issue with the provider and should be reported to the provider developers.

Object Attribute Name (default_queue_id) Expected Type: UUIDType
Object Attribute Name (default_queue_id) Given Type: basetypes.StringType