From 0240f9301fa3b682ba6d9d8796f61b0f9962a316 Mon Sep 17 00:00:00 2001 From: Piotr Truszkowski Date: Wed, 7 Feb 2024 17:03:39 +0100 Subject: [PATCH] without computed for VCS integration id , too many changed at once --- spacelift/resource_module.go | 5 ----- spacelift/resource_stack.go | 5 ----- 2 files changed, 10 deletions(-) diff --git a/spacelift/resource_module.go b/spacelift/resource_module.go index 80dbd985..048e089b 100644 --- a/spacelift/resource_module.go +++ b/spacelift/resource_module.go @@ -53,7 +53,6 @@ func resourceModule() *schema.Resource { Type: schema.TypeString, Description: "ID of the Azure Devops integration. If not specified, the default integration will be used.", Optional: true, - Computed: true, DiffSuppressFunc: func(_, _, new string, res *schema.ResourceData) bool { isDefault := res.Get("azure_devops.0.is_default").(bool) @@ -85,7 +84,6 @@ func resourceModule() *schema.Resource { "id": { Type: schema.TypeString, Optional: true, - Computed: true, Description: "The ID of the Bitbucket Cloud integration. If not specified, the default integration will be used.", DiffSuppressFunc: func(_, _, new string, res *schema.ResourceData) bool { isDefault := res.Get("bitbucket_cloud.0.is_default").(bool) @@ -118,7 +116,6 @@ func resourceModule() *schema.Resource { "id": { Type: schema.TypeString, Optional: true, - Computed: true, Description: "The ID of the Bitbucket Datacenter integration. If not specified, the default integration will be used.", DiffSuppressFunc: func(_, _, new string, res *schema.ResourceData) bool { isDefault := res.Get("bitbucket_datacenter.0.is_default").(bool) @@ -173,7 +170,6 @@ func resourceModule() *schema.Resource { "id": { Type: schema.TypeString, Optional: true, - Computed: true, Description: "The ID of the GitHub Enterprise integration. If not specified, the default integration will be used.", DiffSuppressFunc: func(_, _, new string, res *schema.ResourceData) bool { isDefault := res.Get("github_enterprise.0.is_default").(bool) @@ -201,7 +197,6 @@ func resourceModule() *schema.Resource { Type: schema.TypeString, Description: "ID of the Gitlab integration. If not specified, the default integration will be used.", Optional: true, - Computed: true, DiffSuppressFunc: func(_, _, new string, res *schema.ResourceData) bool { isDefault := res.Get("gitlab.0.is_default").(bool) diff --git a/spacelift/resource_stack.go b/spacelift/resource_stack.go index 9a97406e..9bbce877 100644 --- a/spacelift/resource_stack.go +++ b/spacelift/resource_stack.go @@ -140,7 +140,6 @@ func resourceStack() *schema.Resource { "id": { Type: schema.TypeString, Optional: true, - Computed: true, Description: "The ID of the Azure Devops integration. If not specified, the default integration will be used.", DiffSuppressFunc: func(_, _, new string, res *schema.ResourceData) bool { isDefault := res.Get("azure_devops.0.is_default").(bool) @@ -224,7 +223,6 @@ func resourceStack() *schema.Resource { "id": { Type: schema.TypeString, Optional: true, - Computed: true, Description: "The ID of the Bitbucket Cloud integration. If not specified, the default integration will be used.", DiffSuppressFunc: func(_, _, new string, res *schema.ResourceData) bool { isDefault := res.Get("bitbucket_cloud.0.is_default").(bool) @@ -257,7 +255,6 @@ func resourceStack() *schema.Resource { "id": { Type: schema.TypeString, Optional: true, - Computed: true, Description: "The ID of the Bitbucket Datacenter integration. If not specified, the default integration will be used.", DiffSuppressFunc: func(_, _, new string, res *schema.ResourceData) bool { isDefault := res.Get("bitbucket_datacenter.0.is_default").(bool) @@ -348,7 +345,6 @@ func resourceStack() *schema.Resource { "id": { Type: schema.TypeString, Optional: true, - Computed: true, Description: "The ID of the GitHub Enterprise integration. If not specified, the default integration will be used.", DiffSuppressFunc: func(_, _, new string, res *schema.ResourceData) bool { isDefault := res.Get("github_enterprise.0.is_default").(bool) @@ -375,7 +371,6 @@ func resourceStack() *schema.Resource { "id": { Type: schema.TypeString, Optional: true, - Computed: true, Description: "The ID of the Gitlab integration. If not specified, the default integration will be used.", DiffSuppressFunc: func(_, _, new string, res *schema.ResourceData) bool { isDefault := res.Get("gitlab.0.is_default").(bool)