generated from hashicorp/terraform-provider-scaffolding-framework
-
Couldn't load subscription status.
- Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Hi,
When I try to deactivate the ‘development’ environment for the default project, the deactivation works fine but there is another xhr call that is made during the apply, which doesn't exist in OSS version.
Steps to reproduce the bug
resource "unleash_project_environment" "project_development_environment" {
count = var.create ? 1 : 0
project_id = "default"
environment_name = "development"
enabled = false
}OR
resource "unleash_project_environment" "project_development_environment" {
count = var.create ? 1 : 0
project_id = "default"
environment_name = "development"
enabled = false
change_requests_enabled = false
}Expected behavior
Do not call this endpoint if the instance is OSS or if there are no modifications around change-requests.
Logs, error output, etc.
Error: Unable to call api GET https://unleash.dev.zenchef.io/api/admin/projects/default/change-requests/config
│
│ with unleash_project_environment.project_development_environment[0],
│ on main.tf line 45, in resource "unleash_project_environment" "project_development_environment":
│ 45: resource "unleash_project_environment" "project_development_environment" {
│
│ 404 Not Found
╵
╷
│ Error: Unexpected HTTP error code received 404 Not Found
│
│ with unleash_project_environment.project_development_environment[0],
│ on main.tf line 45, in resource "unleash_project_environment" "project_development_environment":
│ 45: resource "unleash_project_environment" "project_development_environment" {
│
│ Calling API GET
│ https://unleash.dev.zenchef.io/api/admin/projects/default/change-requests/config
│ Expected [200], got 404
│ {{"id":"d24a80ce-586b-4ac9-b503-0a1a666607ac","name":"NotFoundError","message":"The
│ path you were looking for
│ (/api/admin/projects/default/change-requests/config) is not
│ available.","details":[{"message":"The path you were looking for
│ (/api/admin/projects/default/change-requests/config) is not available."}]}}Screenshots
No response
Additional context
No response
Unleash version
No response
Subscription type
Unleash OSS
Hosting type
Self
SDK information (language and version)
No response
tetienne-zenchef
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
In Progress