From 935082205dcfc75111413f9bc4aad7dc1fa2c47c Mon Sep 17 00:00:00 2001 From: jiawei Date: Thu, 21 Dec 2023 02:52:11 +0000 Subject: [PATCH] remove exactoneof to avoid breaking change --- .../container_app_environment_resource.go | 10 +++------- .../containerapps/helpers/container_app_environment.go | 4 ---- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/internal/services/containerapps/container_app_environment_resource.go b/internal/services/containerapps/container_app_environment_resource.go index 0e5a689484db6..f3d5bb4b50b3c 100644 --- a/internal/services/containerapps/container_app_environment_resource.go +++ b/internal/services/containerapps/container_app_environment_resource.go @@ -108,13 +108,9 @@ func (r ContainerAppEnvironmentResource) Arguments() map[string]*pluginsdk.Schem }, "workload_profiles_consumption_only_enabled": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - ExactlyOneOf: []string{ - "workload_profiles_consumption_only_enabled", - "workload_profile", - }, + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, Description: "Should the Container Environment only allow Consumption Workload Profiles? Defaults to `false`.", }, diff --git a/internal/services/containerapps/helpers/container_app_environment.go b/internal/services/containerapps/helpers/container_app_environment.go index 65dd2a19c8b01..15733e3e7a7ad 100644 --- a/internal/services/containerapps/helpers/container_app_environment.go +++ b/internal/services/containerapps/helpers/container_app_environment.go @@ -25,10 +25,6 @@ func WorkloadProfileSchema() *pluginsdk.Schema { return &pluginsdk.Schema{ Type: pluginsdk.TypeSet, Optional: true, - ExactlyOneOf: []string{ - "workload_profiles_consumption_only_enabled", - "workload_profile", - }, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ "name": {