Open FinnianDempsey opened 7 months ago
This appears to be a bug in the API.
For my current test setup:
http://localhost:8066/api/Spaces-1/machines?skip=0&take=2147483647&isDisabled=false
returns all six targets
{
ItemType: "Machine",
TotalResults: 6,
ItemsPerPage: 2147483647,
NumberOfPages: 1,
LastPageNumber: 0,
Items: [ ... ]
}
http://localhost:8066/api/Spaces-1/machines?skip=0&take=2147483647&isDisabled=true
returns just the two disabled ones:
{
ItemType: "Machine",
TotalResults: 2,
ItemsPerPage: 2147483647,
NumberOfPages: 1,
LastPageNumber: 0,
Items: [ ... ]
Raised this as an issue against Server https://github.com/OctopusDeploy/Issues/issues/8916
Describe the bug When using the TF provider with Data Sources for Deployment Targets, if using the
is_disabled
variable set to false, resources that are set to true are returned alongside false valuesSteps to reproduce
is_disabled
field set to false:is_disabled = true
Expected behavior Only false values should be returned when using
is_disabled = false
Environment and versions:
1.5.7
]0.18.1
]Additional context
is_disabled = true
works as expected which seems odd