Skip to content

Commit

Permalink
Latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
danitso-dp committed Aug 10, 2019
1 parent 2300e5b commit 00350da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ If you're building the provider, follow the instructions to [install it as a plu
* `port` - (Optional) The port number for the remote host.
* `private_key` - (Optional) The private key for the remote host. Defaults to an empty string (use `password` for regular password authorization).
* `timeout` - (Optional) The connect timeout. Defaults to `5m` (5 minutes).
* `triggers` - (Optional) The triggers.
* `user` - (Required) The username for the remote host.

#### Attributes
Expand Down
9 changes: 8 additions & 1 deletion data_source_remote_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const (
mkDataSourceRemoteFilePrivateKey = "private_key"
mkDataSourceRemoteFileSize = "size"
mkDataSourceRemoteFileTimeout = "timeout"
mkDataSourceRemoteFileTriggers = "triggers"
mkDataSourceRemoteFileUser = "user"
)

Expand Down Expand Up @@ -98,11 +99,17 @@ func dataSourceRemoteFile() *schema.Resource {
},
mkDataSourceRemoteFileTimeout: &schema.Schema{
Type: schema.TypeString,
Description: "The connection timeout",
Description: "The connect timeout",
Optional: true,
Default: "5m",
ForceNew: true,
},
mkDataSourceRemoteFileTriggers: &schema.Schema{
Type: schema.TypeMap,
Description: "The triggers",
Optional: true,
ForceNew: true,
},
mkDataSourceRemoteFileUser: &schema.Schema{
Type: schema.TypeString,
Description: "The username",
Expand Down

0 comments on commit 00350da

Please sign in to comment.