Skip to content

Conversation

@hnrkndrssn
Copy link
Contributor

@hnrkndrssn hnrkndrssn commented Nov 14, 2025

Background

We find an issue when we create a new project via terraform octopus provider in our CICD pipeline, because it generates unexpected value on discrete_channel_release on the creation.

Provider Version: OctopusDeploy/octopusdeploy - 1.1.2

Error Message:

│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ module.octopus.octopusdeploy_project.tu_project["project_group_ccb_project_ccb"],
│ provider "provider[\"registry.terraform.io/octopusdeploy/octopusdeploy\"]"
│ produced an unexpected new value: .discrete_channel_release: was cty.True,
│ but now cty.False.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
Error: Terraform exited with code 1.

Solution

We have both discrete_channel_release and is_discrete_channel_release on the project resource, we pass the value of is_discrete_channel_release to the Octopus API (mapped to DiscreteChannelRelease property on the project).

This PR deprecates the discrete_channel_release property and tells users to use the is_discrete_channel_release instead.

[sc-128196]

@hnrkndrssn hnrkndrssn requested a review from a team November 14, 2025 06:16
@hnrkndrssn hnrkndrssn self-assigned this Nov 14, 2025
Copy link
Contributor

@HuyPhanNguyen HuyPhanNguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants