Skip to content

Commit

Permalink
remove ForceNew from timeout field
Browse files Browse the repository at this point in the history
  • Loading branch information
tenstad committed Sep 28, 2022
1 parent d67665b commit abf903b
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions internal/provider/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ var connectionSchemaResource = &schema.Resource{
ForceNew: true,
Description: "The ssh port on the remote host.",
},
"timeout": {
Type: schema.TypeInt,
Optional: true,
Description: "The maximum amount of time, in milliseconds, for the TCP connection to establish. Timeout of zero means no timeout.",
},
"user": {
Type: schema.TypeString,
Required: true,
Expand All @@ -39,6 +44,12 @@ var connectionSchemaResource = &schema.Resource{
Default: false,
Description: "Use sudo to gain access to file.",
},
"agent": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: "Use a local SSH agent to login to the remote host.",
},
"password": {
Type: schema.TypeString,
Optional: true,
Expand All @@ -61,18 +72,6 @@ var connectionSchemaResource = &schema.Resource{
Optional: true,
Description: "The name of the local environment variable containing the private key used to login to the remote host.",
},
"agent": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: "Use a local SSH agent to login to the remote host.",
},
"timeout": {
Type: schema.TypeInt,
Optional: true,
ForceNew: true,
Description: "The maximum amount of time, in milliseconds, for the TCP connection to establish. Timeout of zero means no timeout.",
},
},
}

Expand Down

0 comments on commit abf903b

Please sign in to comment.