You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
I expect the new Tenant to be cloned from the existing Tenant
Logs and other supporting information
tf plan
Terraform will perform the following actions:
# octopusdeploy_tenant.cloned will be created
+ resource "octopusdeploy_tenant" "cloned" {
+ cloned_from_tenant_id = "Tenants-128"
+ id = (known after apply)
+ name = "Cloned Tenant"
+ space_id = (known after apply)
+ tenant_tags = (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ created = {
+ cloned_from_tenant_id = "Tenants-128"
+ description = null
+ id = (known after apply)
+ name = "Cloned Tenant"
+ space_id = (known after apply)
+ tenant_tags = (known after apply)
}
tf apply
Terraform will perform the following actions:
# octopusdeploy_tenant.cloned will be created
+ resource "octopusdeploy_tenant" "cloned" {
+ cloned_from_tenant_id = "Tenants-128"
+ id = (known after apply)
+ name = "Cloned Tenant"
+ space_id = (known after apply)
+ tenant_tags = (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ created = {
+ cloned_from_tenant_id = "Tenants-128"
+ description = null
+ id = (known after apply)
+ name = "Cloned Tenant"
+ space_id = (known after apply)
+ tenant_tags = (known after apply)
}
octopusdeploy_tenant.cloned: Creating...
octopusdeploy_tenant.cloned: Creation complete after 0s [id=Tenants-366]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Outputs:
created = {
"cloned_from_tenant_id" = ""
"description" = ""
"id" = "Tenants-366"
"name" = "Cloned Tenant"
"space_id" = "Spaces-1"
"tenant_tags" = tolist([])
}
Environment and versions:
OS: OSX
Octopus Server Version: latest
Terraform Version: 1.7.5
Octopus Terraform Provider Version: 0.22.1
Additional context
Bug happens due to a mismatch in properties for the Tenant ID to clone from passed to Octopus from the Provider, Octopus is expecting Clone but is passed ClonedFromTenantId.
Bug comes down to the tenant struct passing ClonedFromTenantID to Octopus, but Octopus is expecting Clone.
The text was updated successfully, but these errors were encountered:
Describe the bug
When creating a new tenant that should be cloned from an existing tenant the new tenant is not cloned from the existing tenant.
Discovered when doing some testing in Terraform.
Steps to reproduce
Config
Existing Tenant
Created Tenant
Expected behavior
I expect the new Tenant to be cloned from the existing Tenant
Logs and other supporting information
tf plan
tf apply
Environment and versions:
1.7.5
0.22.1
Additional context
Bug happens due to a mismatch in properties for the Tenant ID to clone from passed to Octopus from the Provider, Octopus is expecting
Clone
but is passedClonedFromTenantId
.Bug comes down to the
tenant
struct passingClonedFromTenantID
to Octopus, but Octopus is expectingClone
.The text was updated successfully, but these errors were encountered: