terraform-provider-octopusdeploy icon indicating copy to clipboard operation
terraform-provider-octopusdeploy copied to clipboard

Same result when using name and partial name on data.octopusdeploy_tenants

Open ericlundmark opened this issue 2 years ago • 3 comments

Describe the bug A clear and concise description of what the bug is.

Steps to reproduce

  1. Create a tenant named Something_Common_Something
  2. Create a tenant named Common
  3. Use octopusdeploy_tenants with name=common
  4. Run
  5. 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

ericlundmark avatar Mar 25 '22 13:03 ericlundmark

@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?

johnsimons avatar Mar 28 '22 04:03 johnsimons

The issue is that both:

  • /api/Spaces-1/tenants?partialName=And
  • /api/Spaces-1/tenants?name=And

do a wildcard search 😢

johnsimons avatar Mar 28 '22 04:03 johnsimons

I have raised https://github.com/OctopusDeploy/Issues/issues/7449

johnsimons avatar Mar 28 '22 04:03 johnsimons