From a0a83ed1220a70577c951516cebbaf81c9149ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20R=C3=A9thelyi?= Date: Wed, 31 Jan 2024 17:06:41 +0000 Subject: [PATCH] remove forcenew, add computed and applyonce --- .../resource_ibm_satellite_location.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/ibm/service/satellite/resource_ibm_satellite_location.go b/ibm/service/satellite/resource_ibm_satellite_location.go index 9002077795e..ccb0d40b818 100644 --- a/ibm/service/satellite/resource_ibm_satellite_location.go +++ b/ibm/service/satellite/resource_ibm_satellite_location.go @@ -210,16 +210,18 @@ func ResourceIBMSatelliteLocation() *schema.Resource { Sensitive: true, }, "service_subnet": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Custom subnet CIDR to provide private IP addresses for services", + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Custom subnet CIDR to provide private IP addresses for services", + DiffSuppressFunc: flex.ApplyOnce, }, "pod_subnet": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Custom subnet CIDR to provide private IP addresses for pods", + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Custom subnet CIDR to provide private IP addresses for pods", + DiffSuppressFunc: flex.ApplyOnce, }, }, }