From a33bb1d4365c54f2515ec845814c41e51c98944c Mon Sep 17 00:00:00 2001 From: Hod Alpert Date: Thu, 27 Jan 2022 16:48:30 +0200 Subject: [PATCH] NSOF-5929 trusted_network: make 'criteria' optional instead of 'Required' --- docs/resources/trusted_network.md | 2 +- internal/provider/trusted_network/resource.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/trusted_network.md b/docs/resources/trusted_network.md index 30b2433e..f5bf3777 100644 --- a/docs/resources/trusted_network.md +++ b/docs/resources/trusted_network.md @@ -47,13 +47,13 @@ resource "pfptmeta_trusted_network" "network" { ### Required -- **criteria** (Block List, Min: 1) (see [below for nested schema](#nestedblock--criteria)) - **name** (String) ### Optional - **apply_to_entities** (List of String) Entities (users, groups or network elements) to be allowed to use trusted networks. - **apply_to_org** (Boolean) Indicates whether this trusted network setting applies to the entire org. Note: This attribute overrides `apply_to_entities`. +- **criteria** (Block List) (see [below for nested schema](#nestedblock--criteria)) - **description** (String) - **enabled** (Boolean) - **exempt_entities** (List of String) Entities (users, groups or network elements) which are not allowed to use trusted networks. diff --git a/internal/provider/trusted_network/resource.go b/internal/provider/trusted_network/resource.go index c9b3f529..6b5f4d27 100644 --- a/internal/provider/trusted_network/resource.go +++ b/internal/provider/trusted_network/resource.go @@ -114,7 +114,7 @@ func Resource() *schema.Resource { }, }, }, - Required: true, + Optional: true, MinItems: 1, }, },