update communicators to use legacy types

This commit is contained in:
James Bardin 2020-11-18 10:06:28 -05:00
parent aa42841dd8
commit 590615f7c3
11 changed files with 11 additions and 11 deletions

View File

@ -11,7 +11,7 @@ import (
"github.com/hashicorp/terraform/communicator/remote" "github.com/hashicorp/terraform/communicator/remote"
"github.com/hashicorp/terraform/communicator/ssh" "github.com/hashicorp/terraform/communicator/ssh"
"github.com/hashicorp/terraform/communicator/winrm" "github.com/hashicorp/terraform/communicator/winrm"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
// Communicator is an interface that must be implemented by all communicators // Communicator is an interface that must be implemented by all communicators

View File

@ -8,7 +8,7 @@ import (
"time" "time"
"github.com/hashicorp/terraform/communicator/remote" "github.com/hashicorp/terraform/communicator/remote"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
// MockCommunicator is an implementation of Communicator that can be used for tests. // MockCommunicator is an implementation of Communicator that can be used for tests.

View File

@ -8,7 +8,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
func TestCommunicator_new(t *testing.T) { func TestCommunicator_new(t *testing.T) {

View File

@ -20,7 +20,7 @@ import (
"github.com/hashicorp/errwrap" "github.com/hashicorp/errwrap"
"github.com/hashicorp/terraform/communicator/remote" "github.com/hashicorp/terraform/communicator/remote"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
"golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent" "golang.org/x/crypto/ssh/agent"
) )

View File

@ -20,7 +20,7 @@ import (
"time" "time"
"github.com/hashicorp/terraform/communicator/remote" "github.com/hashicorp/terraform/communicator/remote"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
"golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh"
) )

View File

@ -14,7 +14,7 @@ import (
"time" "time"
"github.com/hashicorp/terraform/communicator/shared" "github.com/hashicorp/terraform/communicator/shared"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"
sshagent "github.com/xanzy/ssh-agent" sshagent "github.com/xanzy/ssh-agent"
"golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh"

View File

@ -3,7 +3,7 @@ package ssh
import ( import (
"testing" "testing"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
func TestProvisioner_connInfo(t *testing.T) { func TestProvisioner_connInfo(t *testing.T) {

View File

@ -10,7 +10,7 @@ import (
"time" "time"
"github.com/hashicorp/terraform/communicator/remote" "github.com/hashicorp/terraform/communicator/remote"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
"github.com/masterzen/winrm" "github.com/masterzen/winrm"
"github.com/packer-community/winrmcp/winrmcp" "github.com/packer-community/winrmcp/winrmcp"
) )

View File

@ -9,7 +9,7 @@ import (
"github.com/dylanmei/winrmtest" "github.com/dylanmei/winrmtest"
"github.com/hashicorp/terraform/communicator/remote" "github.com/hashicorp/terraform/communicator/remote"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
func newMockWinRMServer(t *testing.T) *winrmtest.Remote { func newMockWinRMServer(t *testing.T) *winrmtest.Remote {

View File

@ -8,7 +8,7 @@ import (
"time" "time"
"github.com/hashicorp/terraform/communicator/shared" "github.com/hashicorp/terraform/communicator/shared"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"
) )

View File

@ -3,7 +3,7 @@ package winrm
import ( import (
"testing" "testing"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
func TestProvisioner_defaultHTTPSPort(t *testing.T) { func TestProvisioner_defaultHTTPSPort(t *testing.T) {