Skip to content

Commit

Permalink
Limit number of conn items
Browse files Browse the repository at this point in the history
  • Loading branch information
tenstad committed Aug 4, 2021
1 parent 99872ef commit 88a053e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/remotefile.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ data "remotefile" "hosts" {

### Required

- **conn** (Block List, Min: 1) Connection to host where files are located. (see [below for nested schema](#nestedblock--conn))
- **conn** (Block List, Min: 1, Max: 1) Connection to host where files are located. (see [below for nested schema](#nestedblock--conn))
- **path** (String) Path to file on remote host.

### Optional
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/remotefile.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "remotefile" "bashrc" {

### Required

- **conn** (Block List, Min: 1) Connection to host where files are located. (see [below for nested schema](#nestedblock--conn))
- **conn** (Block List, Min: 1, Max: 1) Connection to host where files are located. (see [below for nested schema](#nestedblock--conn))
- **content** (String) Content of file.
- **path** (String) Path to file on remote host.

Expand Down
2 changes: 2 additions & 0 deletions internal/provider/data_source_remotefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ func dataSourceRemotefile() *schema.Resource {
Schema: map[string]*schema.Schema{
"conn": {
Type: schema.TypeList,
MinItems: 1,
MaxItems: 1,
Required: true,
Description: "Connection to host where files are located.",
Elem: &schema.Resource{
Expand Down
2 changes: 2 additions & 0 deletions internal/provider/resource_remotefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ func resourceRemotefile() *schema.Resource {
Schema: map[string]*schema.Schema{
"conn": {
Type: schema.TypeList,
MinItems: 1,
MaxItems: 1,
Required: true,
Description: "Connection to host where files are located.",
Elem: &schema.Resource{
Expand Down

0 comments on commit 88a053e

Please sign in to comment.