terraform-provider-octopusdeploy
terraform-provider-octopusdeploy copied to clipboard
Same result when using name and partial name on data.octopusdeploy_tenants
Describe the bug A clear and concise description of what the bug is.
Steps to reproduce
- Create a tenant named Something_Common_Something
- Create a tenant named Common
- Use octopusdeploy_tenants with name=common
- Run
- You should see both tenants returned in the result,
Expected behavior There should only be one named common
Environment and versions:
- OS: Windows
- Octopus Server Version: 2021.3
- Terraform Version: 0.15.3
- Octopus Terraform Provider Version: 0.7.69
@slewis74 @domenicsim1 I remember you looking into this issue before, this seems to be an issue with the Server API where name
does a wildcard search too!
Should I raise an issue for Octopus Server?
The issue is that both:
-
/api/Spaces-1/tenants?partialName=And
-
/api/Spaces-1/tenants?name=And
do a wildcard search 😢
I have raised https://github.com/OctopusDeploy/Issues/issues/7449