Skip to content

Commit

Permalink
clarify that known_hosts contain list of file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Hoß authored and sebhoss committed Nov 3, 2022
1 parent d909d45 commit fd2c2ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/resources/push.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Required:

Optional:

- `known_hosts` (Set of String) The list of known hosts to accept. If none are specified, system defaults will be used.
- `known_hosts` (Set of String) The list of known hosts files to accept. If none are specified, system defaults will be used.
- `username` (String) The system username of the user talking to the SSH agent. Use an empty string in order to automatically fetch this.


Expand All @@ -159,7 +159,7 @@ Optional:

Optional:

- `known_hosts` (Set of String) The list of known hosts to accept. If none are specified, system defaults will be used.
- `known_hosts` (Set of String) The list of known hosts files to accept. If none are specified, system defaults will be used.
- `password` (String) The SSH key password.
- `private_key_path` (String) The absolute path to the private SSH key.
- `private_key_pem` (String) The private SSH key in PEM format.
Expand All @@ -176,6 +176,6 @@ Required:

Optional:

- `known_hosts` (Set of String) The list of known hosts to accept. If none are specified, system defaults will be used.
- `known_hosts` (Set of String) The list of known hosts files to accept. If none are specified, system defaults will be used.


12 changes: 6 additions & 6 deletions internal/provider/resource_push.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ func (r *PushResource) GetSchema(_ context.Context) (tfsdk.Schema, diag.Diagnost
},
},
"known_hosts": {
Description: "The list of known hosts to accept. If none are specified, system defaults will be used.",
MarkdownDescription: "The list of known hosts to accept. If none are specified, system defaults will be used.",
Description: "The list of known hosts files to accept. If none are specified, system defaults will be used.",
MarkdownDescription: "The list of known hosts files to accept. If none are specified, system defaults will be used.",
Type: types.SetType{
ElemType: types.StringType,
},
Expand Down Expand Up @@ -286,8 +286,8 @@ func (r *PushResource) GetSchema(_ context.Context) (tfsdk.Schema, diag.Diagnost
},
},
"known_hosts": {
Description: "The list of known hosts to accept. If none are specified, system defaults will be used.",
MarkdownDescription: "The list of known hosts to accept. If none are specified, system defaults will be used.",
Description: "The list of known hosts files to accept. If none are specified, system defaults will be used.",
MarkdownDescription: "The list of known hosts files to accept. If none are specified, system defaults will be used.",
Type: types.SetType{
ElemType: types.StringType,
},
Expand Down Expand Up @@ -331,8 +331,8 @@ func (r *PushResource) GetSchema(_ context.Context) (tfsdk.Schema, diag.Diagnost
},
},
"known_hosts": {
Description: "The list of known hosts to accept. If none are specified, system defaults will be used.",
MarkdownDescription: "The list of known hosts to accept. If none are specified, system defaults will be used.",
Description: "The list of known hosts files to accept. If none are specified, system defaults will be used.",
MarkdownDescription: "The list of known hosts files to accept. If none are specified, system defaults will be used.",
Type: types.SetType{
ElemType: types.StringType,
},
Expand Down

0 comments on commit fd2c2ed

Please sign in to comment.