Skip to content

Commit

Permalink
NSOF-5929 trusted_network: make 'criteria' optional instead of 'Requi…
Browse files Browse the repository at this point in the history
…red'
  • Loading branch information
hod-alpert committed Jan 27, 2022
1 parent 378cbba commit a33bb1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/resources/trusted_network.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/trusted_network/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func Resource() *schema.Resource {
},
},
},
Required: true,
Optional: true,
MinItems: 1,
},
},
Expand Down

0 comments on commit a33bb1d

Please sign in to comment.