Skip to content

Commit

Permalink
remove exactoneof to avoid breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaweitao001 committed Dec 21, 2023
1 parent 8117423 commit ad2eaf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`.",
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit ad2eaf1

Please sign in to comment.