From abf903b8fc6092366819d680cb551016da24d103 Mon Sep 17 00:00:00 2001 From: Amund Tenstad Date: Thu, 25 Aug 2022 13:26:45 +0200 Subject: [PATCH] remove ForceNew from timeout field --- internal/provider/connection.go | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/internal/provider/connection.go b/internal/provider/connection.go index 34bf78e..f7af27c 100644 --- a/internal/provider/connection.go +++ b/internal/provider/connection.go @@ -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, @@ -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, @@ -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.", - }, }, }