OctopusDeployLabs / terraform-provider-octopusdeploy

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

Deleting a project fails with an error #484

Closed mr-miles closed 2 months ago

mr-miles commented 1 year ago

Describe the bug When terraform wants to delete a project and channels, it attempts to delete the default channel. This causes an error.

Steps to reproduce

  1. Create terraform to produce a noddy project deployment process
  2. Run terraform
  3. Remove all resources from the terraform file
  4. Run terraform

Expected behavior If the project is being deleted, there is no need for tf to remove the individual channels first.

Logs and other supporting information [You cannot delete the default channel.]

Environment and versions: OS: "Linux" Octopus Server Version: "202201" Terraform Version: 1.3 Octopus Terraform Provider Version: 0.10.1

mjhilton commented 2 months ago

I'm not able to reproduce this - as far as I can see, we don't cascade delete from a project to channels. Would need more info to be able to diagnose this one.