OctopusDeployLabs / terraform-provider-octopusdeploy

Terraform Provider for Octopus Deploy :octopus:
https://registry.terraform.io/providers/OctopusDeployLabs/octopusdeploy
Mozilla Public License 2.0
79 stars 65 forks source link

Worker pool data source ignores the name field #536

Open itaispiegel opened 11 months ago

itaispiegel commented 11 months ago

Describe the bug The worker pool data source can query the worker pool by its name, but this field is completely ignored.

Steps to reproduce Query some worker pool and output it, with the following blocks:

data "octopusdeploy_worker_pools" "my_worker_pool" {
  name = "my_worker_pool"
}

output "worker_pool" {
  value = data.octopusdeploy_worker_pools.my_worker_pool.worker_pools
}

Expected behavior I expect the output to contain a single worker pool with the queried name.

Logs and other supporting information Instead of the queried pool, it will receive a list of workers that don't necessarily have the expected name.

Screenshots Irrelevant.

Environment and versions:

Additional context To my understanding, it seems that the bug is caused because the Name parameter of the WorkerPoolsQuery struct is completely ignored here.

itaispiegel commented 2 months ago

Still waiting for a response on this...