You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you provided a full/minimal configuration to reproduce the issue?
Have you [tested with the latest master] to confirm the issue still exists?
Have you provided the terraform console logs with environment variable set to TF_LOG=trace?
Description
For sometime I have been using additional_attributes with data intersight_search_search_item to filter, since there is no complex filter option. Noticed that going from v1.0.55 to v1.0.56 the additional_properties are now being ignored for the filter.
data"intersight_search_search_item""policies" {
for_each={ forvinlocal.policy_types:v=>viflength(compact(local.data_policies[v])) >0 }
additional_properties=jsonencode(
{ "ClassId" = "${local.bucket["${each.key}_policy"].object_type}' and Name in ('${trim(join("', '", local.data_policies[each.key]), ", '")}') and ObjectType eq '${local.bucket["${each.key}_policy"].object_type}" }
)
}
Actual output (Attach screenshots if applicable)
I have the log and I can upload if you want but I can simply state that in 1.0.55 I see
GET /api/v1/search/SearchItems?%24count=true&%24filter=%28ClassId+eq+%27fabric.PortPolicy%27+and+Name+in+%28%27r143e-2-a%27%2C+%27r143e-2-b%27%29+and+ObjectType+eq+%27fabric.PortPolicy%27%29 HTTP/1.1
and in 1.0.56 I see
GET /api/v1/search/SearchItems?%24filter=&%24skip=9200&%24top=100 HTTP/1.1
GET /api/v1/search/SearchItems?%24filter=&%24skip=9300&%24top=100 HTTP/1.1
GET /api/v1/search/SearchItems?%24filter=&%24skip=9400&%24top=100 HTTP/1.1
GET /api/v1/search/SearchItems?%24filter=&%24skip=9500&%24top=100 HTTP/1.1
GET /api/v1/search/SearchItems?%24filter=&%24skip=9600&%24top=100 HTTP/1.1
as can be seen above it is going through every item in Intersight essentially.
Bug Report Checklist
Description
For sometime I have been using additional_attributes with data intersight_search_search_item to filter, since there is no complex filter option. Noticed that going from v1.0.55 to v1.0.56 the additional_properties are now being ignored for the filter.
Using this workaround as proposed in this issue
Terraform-provider-intersight version
v1.0.56
Configuration file
Actual output (Attach screenshots if applicable)
I have the log and I can upload if you want but I can simply state that in 1.0.55 I see
and in 1.0.56 I see
as can be seen above it is going through every item in Intersight essentially.
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: