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:
OS: Doesn't matter.
Octopus Server Version: v2023.3 (Build 10333).
Terraform Version: v1.5.2
Octopus Terraform Provider Version: v0.12.5
Additional context
To my understanding, it seems that the bug is caused because the Name parameter of the WorkerPoolsQuery struct is completely ignored here.
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:
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 theWorkerPoolsQuery
struct is completely ignored here.